|
@@ -752,7 +752,8 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, int type,
|
|
flags, current_cred());
|
|
flags, current_cred());
|
|
if (IS_ERR(*filp))
|
|
if (IS_ERR(*filp))
|
|
host_err = PTR_ERR(*filp);
|
|
host_err = PTR_ERR(*filp);
|
|
- host_err = ima_file_check(*filp, access);
|
|
|
|
|
|
+ else
|
|
|
|
+ host_err = ima_file_check(*filp, access);
|
|
out_nfserr:
|
|
out_nfserr:
|
|
err = nfserrno(host_err);
|
|
err = nfserrno(host_err);
|
|
out:
|
|
out:
|