Explicitely note that destroy_dev() sleeps.
Requested by: ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
This commit is contained in:
parent
6a4b562384
commit
c0925f09e7
@ -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