提交 72109368 编写于 作者: D Dennis Munsie 提交者: Dave Airlie

Removed hard coded EDID buffer size.

Signed-off-by: NDennis Munsie <dmunsie@cecropia.com>
Acked-by: NAntonino Daplas <adaplas@pol.net>
Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 7a532c69
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册