diff options
author | Rick Macklem <rmacklem@FreeBSD.org> | 2010-09-09 15:45:11 +0000 |
---|---|---|
committer | Rick Macklem <rmacklem@FreeBSD.org> | 2010-09-09 15:45:11 +0000 |
commit | a8c0af5906885f2c0e5a70f9b0746369658b128d (patch) | |
tree | dea0ee2da58e6ce20f281539201b86655435237a /sys/fs/nfsclient/nfs_clvnops.c | |
parent | 42768fec0fe3ff53d4ea4ea1bf839ab2f83a0506 (diff) | |
download | src-test2-a8c0af5906885f2c0e5a70f9b0746369658b128d.tar.gz src-test2-a8c0af5906885f2c0e5a70f9b0746369658b128d.zip |
Notes
Diffstat (limited to 'sys/fs/nfsclient/nfs_clvnops.c')
-rw-r--r-- | sys/fs/nfsclient/nfs_clvnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c index 1e4e8a67e0d6..8f1ec27c3bb1 100644 --- a/sys/fs/nfsclient/nfs_clvnops.c +++ b/sys/fs/nfsclient/nfs_clvnops.c @@ -2939,8 +2939,10 @@ nfs_advlock(struct vop_advlock_args *ap) } else { if (ncl_advlock_p) error = ncl_advlock_p(ap); - else + else { + VOP_UNLOCK(vp, 0); error = ENOLCK; + } } } return (error); |