diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-26 14:21:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-26 14:21:43 -0400 |
commit | f315cf5e02d9910b7be893f5b5afdcc2e49d352d (patch) | |
tree | 5ecd91fab3a4bf35a22700d2aa8ebc1edf3d6059 /fs | |
parent | c271f5bc9a7a03fab037dbf5bdd5a730a6e26211 (diff) | |
parent | e4daf1ffbe6cc3b12aab4d604e627829e93e9914 (diff) |
Merge branch 'for-3.11' of git://linux-nfs.org/~bfields/linux
Pull nfsd fix from Bruce Fields:
"One more nfsd bugfix for 3.11"
* 'for-3.11' of git://linux-nfs.org/~bfields/linux:
nfsd: nfsd_open: when dentry_open returns an error do not propagate as struct file
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/vfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 8ff6a0019b0b..c827acb0e943 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -830,9 +830,10 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, | |||
830 | flags = O_WRONLY|O_LARGEFILE; | 830 | flags = O_WRONLY|O_LARGEFILE; |
831 | } | 831 | } |
832 | *filp = dentry_open(&path, flags, current_cred()); | 832 | *filp = dentry_open(&path, flags, current_cred()); |
833 | if (IS_ERR(*filp)) | 833 | if (IS_ERR(*filp)) { |
834 | host_err = PTR_ERR(*filp); | 834 | host_err = PTR_ERR(*filp); |
835 | else { | 835 | *filp = NULL; |
836 | } else { | ||
836 | host_err = ima_file_check(*filp, may_flags); | 837 | host_err = ima_file_check(*filp, may_flags); |
837 | 838 | ||
838 | if (may_flags & NFSD_MAY_64BIT_COOKIE) | 839 | if (may_flags & NFSD_MAY_64BIT_COOKIE) |