[PATCH 2.6.17-rc5-mm1] EDID cleanup
From: Dennis Munsie <hidden>
Date: 2006-05-31 15:07:32
Just a small patch to remove a hard buffer size. --- From: Dennis Munsie <redacted> Removed hard coded EDID buffer size. Signed-off-by: Dennis Munsie <redacted> --- drivers/video/intelfb/intelfbdrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -Naurp -X linux-2.6.17-rc5-mm1/Documentation/dontdiff linux-2.6.17-rc5-mm1/drivers/video/intelfb/intelfbdrv.c linux-2.6.17-rc5-edid-cleanup/drivers/video/intelfb/intelfbdrv.c
--- linux-2.6.17-rc5-mm1/drivers/video/intelfb/intelfbdrv.c 2006-05-31 10:11:12.000000000 -0500
+++ linux-2.6.17-rc5-edid-cleanup/drivers/video/intelfb/intelfbdrv.c 2006-05-31 10:10:55.000000000 -0500@@ -1036,10 +1036,10 @@ intelfb_init_var(struct intelfb_info *di 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);
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642