diff options
Diffstat (limited to 'usr/src/uts/common')
| -rw-r--r-- | usr/src/uts/common/fs/autofs/auto_vnops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/autofs/auto_vnops.c b/usr/src/uts/common/fs/autofs/auto_vnops.c index ebe3ce4055..25eede67fd 100644 --- a/usr/src/uts/common/fs/autofs/auto_vnops.c +++ b/usr/src/uts/common/fs/autofs/auto_vnops.c @@ -187,10 +187,13 @@ auto_getattr( if (newvp == NULL) goto defattr; - if (error = vn_vfsrlock_wait(vp)) + if (error = vn_vfsrlock_wait(vp)) { + VN_RELE(newvp); return (error); + } vfsp = newvp->v_vfsp; + VN_RELE(newvp); } else { /* * Recursive auto_getattr/mount; go to the vfsp == NULL |
