Explicitely note that destroy_dev() sleeps.

Requested by:	ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
This commit is contained in:
kib 2008-11-27 16:47:25 +00:00
parent 6a4b562384
commit c0925f09e7

View File

@ -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();