[PATCH] acpi: processor add release_region()

Igor Popik
2005-10-08T12:41:28Z

Hi,

The processor module reservers some io mem but it does not release
that region during unload nor during processor removal (possibly with
hotplug support?).

This casues oops after unloading processor module and attempt to read
contents of /proc/ioports file (memory region name points to unloaded
module).

Best Regards,
Igor

--- a/drivers/acpi/processor_core.c 2005-10-08 13:26:23.000000000 +0200
+++ b/drivers/acpi/processor_core.c 2005-10-08 13:31:35.000000000 +0200
@@ -675,6 +675,9 @@

acpi_processor_remove_fs(device);

+ if (pr->throttling.address)
+ release_region(pr->throttling.address, 6);
+
processors[pr->id] = NULL;

kfree(pr);

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl