summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_extattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r--sys/kern/vfs_extattr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 1037753..6a63c29 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -3711,12 +3711,14 @@ revoke(td, uap)
VOP_UNLOCK(vp, 0, td);
if (td->td_ucred->cr_uid != vattr.va_uid) {
error = suser_cred(td->td_ucred, SUSER_ALLOWJAIL);
- if (error)
- goto out;
+ if (error) {
+ vrele(vp);
+ return (error);
+ }
}
if (vcount(vp) > 1)
VOP_REVOKE(vp, REVOKEALL);
-out:
+
vrele(vp);
return (error);
}
OpenPOWER on IntegriCloud