Skip to content
  • Liu Jinsong's avatar
    xen/acpi: xen memory hotplug minor updates · 484400ff
    Liu Jinsong authored
    
    
    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: default avatarLiu Jinsong <jinsong.liu@intel.com>
    Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
    484400ff