Commit 72109368 authored by Dennis Munsie's avatar Dennis Munsie Committed by Dave Airlie
Browse files

Removed hard coded EDID buffer size.

parent 7a532c69
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);