Xishi Qiu
92d585ef06
numa: fix NULL pointer access and memory leak in unregister_one_node()
...
When doing socket hot remove, "node_devices[nid]" is set to NULL;
acpi_processor_remove()
try_offline_node()
unregister_one_node()
Then hot add a socket, but do not echo 1 > /sys/devices/system/cpu/cpuXX/online,
so register_one_node() will not be called, and "node_devices[nid]"
is still NULL.
If doing socket hot remove again, NULL pointer access will be happen.
unregister_one_node()
unregister_node()
Another, we should free the memory used by "node_devices[nid]" in
unregister_one_node().
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-08 22:08:29 -08:00
..
power
drivers/base: delete non-required instances of include <linux/init.h>
2014-02-14 14:31:37 -08:00
regmap
drivers/base: delete non-required instances of include <linux/init.h>
2014-02-14 14:31:37 -08:00
attribute_container.c
drivers/base: delete non-required instances of include <linux/init.h>
2014-02-14 14:31:37 -08:00
base.h
ACPI / hotplug / driver core: Handle containers in a special way
2013-12-29 15:25:48 +01:00
bus.c
driver-core: Fix use-after-free triggered by bus_unregister()
2014-01-08 15:36:18 -08:00
class.c
component.c
drivers/base: fix devres handling for master device
2014-02-07 16:45:14 -08:00
container.c
ACPI / hotplug / driver core: Handle containers in a special way
2013-12-29 15:25:48 +01:00
core.c
Revert "driver core: synchronize device shutdown"
2014-03-08 22:08:29 -08:00
cpu.c
x86: align x86 arch with generic CPU modalias handling
2014-02-18 12:45:38 -08:00
dd.c
PM / runtime: Use pm_runtime_put_sync() in __device_release_driver()
2013-11-07 19:13:49 +01:00
devres.c
devtmpfs.c
devtmpfs: Calling delete_path() only when necessary
2013-12-19 10:10:32 -08:00
dma-buf.c
Merge 3.14-rc5 into driver-core-next
2014-03-02 20:09:08 -08:00
dma-coherent.c
dma-contiguous.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2013-11-15 16:47:22 -08:00
dma-mapping.c
driver.c
firmware.c
firmware_class.c
Merge 3.14-rc5 into driver-core-next
2014-03-02 20:09:08 -08:00
hypervisor.c
init.c
ACPI / hotplug / driver core: Handle containers in a special way
2013-12-29 15:25:48 +01:00
isa.c
Kconfig
x86: align x86 arch with generic CPU modalias handling
2014-02-18 12:45:38 -08:00
Makefile
ACPI and power management updates for 3.14-rc1
2014-01-24 15:51:02 -08:00
map.c
memory.c
module.c
node.c
numa: fix NULL pointer access and memory leak in unregister_one_node()
2014-03-08 22:08:29 -08:00
pinctrl.c
platform.c
ACPI / platform: drop redundant ACPI_HANDLE check
2014-02-14 14:06:16 -08:00
reservation.c
soc.c
syscore.c
topology.c
drivers/base: delete non-required instances of include <linux/init.h>
2014-02-14 14:31:37 -08:00
transport_class.c