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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185373
@ -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