We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24e041e commit ba63537Copy full SHA for ba63537
drivers/base/core.c
@@ -4816,7 +4816,7 @@ void device_shutdown(void)
4816
spin_unlock(&devices_kset->list_lock);
4817
4818
/* hold lock to avoid race with probe/release */
4819
- if (parent)
+ if (parent && dev->bus && dev->bus->need_parent_lock)
4820
device_lock(parent);
4821
device_lock(dev);
4822
@@ -4840,7 +4840,7 @@ void device_shutdown(void)
4840
}
4841
4842
device_unlock(dev);
4843
4844
device_unlock(parent);
4845
4846
put_device(dev);
0 commit comments