diff options
author | Richard Cochran <rcochran@linutronix.de> | 2016-04-07 00:00:51 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-07 23:10:54 +0300 |
commit | 51319918bcc31f901646fc66348d41cf74ee0566 (patch) | |
tree | c5dd73b8ab2e6337b7b10d5b76ee66b68dd5d566 /mm/memory_hotplug.c | |
parent | 4a3dfb3fc0fb0fc9acd36c94b7145f9c9dd4d93a (diff) | |
download | linux-51319918bcc31f901646fc66348d41cf74ee0566.tar.xz |
intel_idle: Fix deallocation order on the driver exit path.
In the module_exit() method, this driver first frees its per-CPU
pointer, then unregisters a callback making use of the pointer.
Furthermore, the function, intel_idle_cpuidle_devices_uninit, is racy
against CPU hot plugging as it calls for_each_online_cpu().
This patch corrects the issues by unregistering first on the exit path
while holding the hot plug lock.
Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions