diff options
author | Liu Jinsong <jinsong.liu@intel.com> | 2013-02-16 09:59:03 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-25 13:44:21 +0100 |
commit | 484400ffbf2dd33446d71c05b9cddf91932a882e (patch) | |
tree | bb4d4650a246dadebe0eec93fac459876d67de46 /arch/x86/xen | |
parent | Merge tag 'stable/for-linus-3.9-rc0-tag' of git://git.kernel.org/pub/scm/linu... (diff) | |
download | linux-484400ffbf2dd33446d71c05b9cddf91932a882e.tar.xz linux-484400ffbf2dd33446d71c05b9cddf91932a882e.zip |
xen/acpi: xen memory hotplug minor updates
Dan Carpenter found current xen memory hotplug logic
has potential issue: at func acpi_memory_get_device()
*mem_device = acpi_driver_data(device);
while the device may be NULL and then dereference.
At native side, Rafael recently updated acpi_memory_get_device(),
dropping acpi_bus_add, adding lock, and avoiding above issue.
This patch updates xen memory hotplug logic accordingly, removing
redundant logic, adding lock, and avoiding dereference.
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions