* [PATCH] acpi: processor add release_region()
@ 2005-10-08 12:41 Igor Popik
0 siblings, 0 replies; only message in thread
From: Igor Popik @ 2005-10-08 12:41 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-08 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-08 12:41 [PATCH] acpi: processor add release_region() Igor Popik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox