We may not have an actual cdev at this point.

This commit is contained in:
Poul-Henning Kamp 2005-02-22 18:17:31 +00:00
parent 64716bfbf4
commit 0454a53d65

View File

@ -1052,6 +1052,9 @@ devfs_reclaim(ap)
dev = vp->v_rdev;
vp->v_rdev = NULL;
if (dev == NULL)
return (0);
dev_lock();
if (de != NULL)
LIST_REMOVE(de, de_alias);