aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/vfs.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index d5fe17cb07e3..c194793b642b 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -752,8 +752,6 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
752 flags, current_cred()); 752 flags, current_cred());
753 if (IS_ERR(*filp)) 753 if (IS_ERR(*filp))
754 host_err = PTR_ERR(*filp); 754 host_err = PTR_ERR(*filp);
755 else
756 ima_counts_get(*filp);
757out_nfserr: 755out_nfserr:
758 err = nfserrno(host_err); 756 err = nfserrno(host_err);
759out: 757out:
@@ -2129,8 +2127,7 @@ nfsd_permission(struct svc_rqst *rqstp, struct svc_export *exp,
2129 */ 2127 */
2130 path.mnt = exp->ex_path.mnt; 2128 path.mnt = exp->ex_path.mnt;
2131 path.dentry = dentry; 2129 path.dentry = dentry;
2132 err = ima_path_check(&path, acc & (MAY_READ | MAY_WRITE | MAY_EXEC), 2130 err = ima_path_check(&path, acc & (MAY_READ | MAY_WRITE | MAY_EXEC));
2133 IMA_COUNT_LEAVE);
2134nfsd_out: 2131nfsd_out:
2135 return err? nfserrno(err) : 0; 2132 return err? nfserrno(err) : 0;
2136} 2133}