diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3ffc9306538bca385d0a7382e94438d27f9d0cf3..9e4422bbe03d071c0882f9dcb02ac22746afdff2 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -353,7 +353,8 @@ static int acpi_scan_hot_remove(struct acpi_device *device) unsigned long long sta; acpi_status status; - if (device->handler->hotplug.demand_offline && !acpi_force_hot_remove) { + if (device->handler && device->handler->hotplug.demand_offline + && !acpi_force_hot_remove) { if (!acpi_scan_is_offline(device, true)) return -EBUSY; } else {