aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/scan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 69bc0d888c01..8d40467d37f9 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -375,7 +375,11 @@ bool acpi_scan_is_offline(struct acpi_device *adev, bool uevent)
375 struct acpi_device_physical_node *pn; 375 struct acpi_device_physical_node *pn;
376 bool offline = true; 376 bool offline = true;
377 377
378 mutex_lock(&adev->physical_node_lock); 378 /*
379 * acpi_container_offline() calls this for all of the container's
380 * children under the container's physical_node_lock lock.
381 */
382 mutex_lock_nested(&adev->physical_node_lock, SINGLE_DEPTH_NESTING);
379 383
380 list_for_each_entry(pn, &adev->physical_node_list, node) 384 list_for_each_entry(pn, &adev->physical_node_list, node)
381 if (device_supports_offline(pn->dev) && !pn->dev->offline) { 385 if (device_supports_offline(pn->dev) && !pn->dev->offline) {