Explicitely note that destroy_dev() sleeps.
Requested by: ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
This commit is contained in:
parent
5cd54324ee
commit
b7a813fc21
@ -862,6 +862,7 @@ void
|
||||
destroy_dev(struct cdev *dev)
|
||||
{
|
||||
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "destroy_dev");
|
||||
dev_lock();
|
||||
destroy_devl(dev);
|
||||
dev_unlock_and_free();
|
||||
|
Loading…
Reference in New Issue
Block a user