diff options
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index 6f9de04193d2..664fc5cf962a 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -1058,10 +1058,9 @@ intelfb_init_var(struct intelfb_info *dinfo) | |||
1058 | u8 *edid_d = NULL; | 1058 | u8 *edid_d = NULL; |
1059 | 1059 | ||
1060 | if (edid_s) { | 1060 | if (edid_s) { |
1061 | edid_d = kmalloc(EDID_LENGTH, GFP_KERNEL); | 1061 | edid_d = kmemdup(edid_s, EDID_LENGTH, GFP_KERNEL); |
1062 | 1062 | ||
1063 | if (edid_d) { | 1063 | if (edid_d) { |
1064 | memcpy(edid_d, edid_s, EDID_LENGTH); | ||
1065 | fb_edid_to_monspecs(edid_d, | 1064 | fb_edid_to_monspecs(edid_d, |
1066 | &dinfo->info->monspecs); | 1065 | &dinfo->info->monspecs); |
1067 | kfree(edid_d); | 1066 | kfree(edid_d); |