Skip to content

Commit

Permalink
Removed hard coded EDID buffer size.
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com>
Acked-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Dennis Munsie authored and Dave Airlie committed Jun 7, 2006
1 parent 7a532c6 commit 7210936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/intelfb/intelfbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,10 +1036,10 @@ intelfb_init_var(struct intelfb_info *dinfo)
u8 *edid_d = NULL;

if (edid_s) {
edid_d = kmalloc(128, GFP_KERNEL);
edid_d = kmalloc(EDID_LENGTH, GFP_KERNEL);

if (edid_d) {
memcpy(edid_d, edid_s, 128);
memcpy(edid_d, edid_s, EDID_LENGTH);
fb_edid_to_monspecs(edid_d,
&dinfo->info->monspecs);
kfree(edid_d);
Expand Down

0 comments on commit 7210936

Please sign in to comment.