aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/intelfb/intelfbdrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 85bf55897f77..076fa56be192 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -1036,10 +1036,10 @@ intelfb_init_var(struct intelfb_info *dinfo)
1036 u8 *edid_d = NULL; 1036 u8 *edid_d = NULL;
1037 1037
1038 if (edid_s) { 1038 if (edid_s) {
1039 edid_d = kmalloc(128, GFP_KERNEL); 1039 edid_d = kmalloc(EDID_LENGTH, GFP_KERNEL);
1040 1040
1041 if (edid_d) { 1041 if (edid_d) {
1042 memcpy(edid_d, edid_s, 128); 1042 memcpy(edid_d, edid_s, EDID_LENGTH);
1043 fb_edid_to_monspecs(edid_d, 1043 fb_edid_to_monspecs(edid_d,
1044 &dinfo->info->monspecs); 1044 &dinfo->info->monspecs);
1045 kfree(edid_d); 1045 kfree(edid_d);