diff --git a/drivers/base/core.c b/drivers/base/core.c index 4a8bf8cda52b..bfa3536d48df 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -3437,7 +3437,7 @@ bool kill_device(struct device *dev) * to run while we are tearing out the bus/class/sysfs from * underneath the device. */ - lockdep_assert_held(&dev->mutex); + device_lock_assert(dev); if (dev->p->dead) return false;