From: Liu Jinsong Date: Sat, 16 Feb 2013 08:59:03 +0000 (+0800) Subject: xen/acpi: xen memory hotplug minor updates X-Git-Tag: v3.9-rc1~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=484400ffbf2dd33446d71c05b9cddf91932a882e;p=pandora-kernel.git 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 Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed