diff options
-rw-r--r-- | fs/nfsd/nfsfh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index bce0b2bfbc61..01965b2f3a76 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c | |||
@@ -557,8 +557,10 @@ fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, | |||
557 | 557 | ||
558 | if (inode) | 558 | if (inode) |
559 | _fh_update(fhp, exp, dentry); | 559 | _fh_update(fhp, exp, dentry); |
560 | if (fhp->fh_handle.fh_fileid_type == 255) | 560 | if (fhp->fh_handle.fh_fileid_type == 255) { |
561 | fh_put(fhp); | ||
561 | return nfserr_opnotsupp; | 562 | return nfserr_opnotsupp; |
563 | } | ||
562 | } | 564 | } |
563 | 565 | ||
564 | return 0; | 566 | return 0; |