2008-01-23 01:43:07

by Yinghai Lu

[permalink] [raw]
Subject: [PATCH] x86: left over fix for leak of early_ioremp in dmi_scan

[PATCH] x86: left over fix for leak of early_ioremp in dmi_scan

Signed-off-by: Yinghai Lu <[email protected]>

Index: linux-2.6/drivers/firmware/dmi_scan.c
===================================================================
--- linux-2.6.orig/drivers/firmware/dmi_scan.c
+++ linux-2.6/drivers/firmware/dmi_scan.c
@@ -353,6 +353,7 @@ void __init dmi_scan_machine(void)
return;
}
}
+ dmi_iounmap(p, 0x10000);
}
out: printk(KERN_INFO "DMI not present or invalid.\n");
}