Message ID | 1739170545-25011-8-git-send-email-kazuhiro3.hayashi@toshiba.co.jp (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Backport fixes that depends on SYSTEM_SCHEDULING | expand |
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 4031ec8024ce..5c5ae92710eb 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c @@ -526,7 +526,7 @@ static int acpi_pci_root_add(struct acpi_device *device, struct acpi_pci_root *root; acpi_handle handle = device->handle; int no_aspm = 0; - bool hotadd = system_state != SYSTEM_BOOTING; + bool hotadd = system_state == SYSTEM_RUNNING; root = kzalloc(sizeof(struct acpi_pci_root), GFP_KERNEL); if (!root)