kernel -- linprocfs: linprocfs_allocvp should return a locked vnode.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 5 Feb 2012 15:04:57 +0000 (10:04 -0500)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sun, 5 Feb 2012 15:04:57 +0000 (10:04 -0500)
Fixes a panic where VFS_ROOT returned an unlocked vnode and led to
a lockmgr panic from vput in the namecache.

Reported-by: phma
Bug: 2298

sys/emulation/linux/i386/linprocfs/linprocfs_subr.c

index 4a246da..8dc4f8f 100644 (file)
@@ -220,8 +220,6 @@ loop:
                continue;
        *pp = pfs;
 
-       vx_unlock(vp);  /* vnode ready to roll! */
-
 out:
        pfsvplock &= ~PROCFS_LOCKED;