mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
Removed hard coded EDID buffer size.
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com> Acked-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
parent
7a532c69c3
commit
72109368de
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user