aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/intelfb
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-12-08 05:40:46 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:29:07 -0500
commitbfba7b3793f59adedfde5fb07dee565c5cc15ab8 (patch)
treed9e0559f288f0bc24df71ad46800e8cb2b779c59 /drivers/video/intelfb
parentefc08a75d3a2d449edab7d1bee312eaa591f7669 (diff)
[PATCH] drivers/video/*: use kmemdup()
From: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/intelfb')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c3
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);