diff options
Diffstat (limited to 'drivers/video/aty/radeon_monitor.c')
-rw-r--r-- | drivers/video/aty/radeon_monitor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/aty/radeon_monitor.c b/drivers/video/aty/radeon_monitor.c index ea531a6f45d1..38c7dbf8c151 100644 --- a/drivers/video/aty/radeon_monitor.c +++ b/drivers/video/aty/radeon_monitor.c | |||
@@ -104,10 +104,9 @@ static int __devinit radeon_parse_montype_prop(struct device_node *dp, u8 **out_ | |||
104 | if (pedid == NULL) | 104 | if (pedid == NULL) |
105 | return mt; | 105 | return mt; |
106 | 106 | ||
107 | tmp = (u8 *)kmalloc(EDID_LENGTH, GFP_KERNEL); | 107 | tmp = kmemdup(pedid, EDID_LENGTH, GFP_KERNEL); |
108 | if (!tmp) | 108 | if (!tmp) |
109 | return mt; | 109 | return mt; |
110 | memcpy(tmp, pedid, EDID_LENGTH); | ||
111 | *out_EDID = tmp; | 110 | *out_EDID = tmp; |
112 | return mt; | 111 | return mt; |
113 | } | 112 | } |