aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/i810/i810-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/i810/i810-i2c.c')
-rw-r--r--drivers/video/i810/i810-i2c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/i810/i810-i2c.c b/drivers/video/i810/i810-i2c.c
index b38d805db313..b952e4504abe 100644
--- a/drivers/video/i810/i810-i2c.c
+++ b/drivers/video/i810/i810-i2c.c
@@ -162,9 +162,7 @@ int i810_probe_i2c_connector(struct fb_info *info, u8 **out_edid, int conn)
162 162
163 if (e != NULL) { 163 if (e != NULL) {
164 DPRINTK("i810-i2c: Getting EDID from BIOS\n"); 164 DPRINTK("i810-i2c: Getting EDID from BIOS\n");
165 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); 165 edid = kmemdup(e, EDID_LENGTH, GFP_KERNEL);
166 if (edid)
167 memcpy(edid, e, EDID_LENGTH);
168 } 166 }
169 } 167 }
170 168