From 147d1ef2ab955483fc2230d10676056cd0634485 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Fri, 4 Sep 2009 11:59:32 -0400 Subject: [PATCH] --- yaml --- r: 164629 b: refs/heads/master c: 1be10a88cac5e589cdd2bcb0cf6a13ed30bcc233 h: refs/heads/master i: 164627: 588efdf8501a3b8abba7fc6d2bf0540f06546c20 v: v3 --- [refs] | 2 +- trunk/fs/nfsd/nfsfh.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 51949877dd20..1db1e6a2c138 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2671a4bf3516757ca028c139a7902a50f2bd994a +refs/heads/master: 1be10a88cac5e589cdd2bcb0cf6a13ed30bcc233 diff --git a/trunk/fs/nfsd/nfsfh.c b/trunk/fs/nfsd/nfsfh.c index bce0b2bfbc61..01965b2f3a76 100644 --- a/trunk/fs/nfsd/nfsfh.c +++ b/trunk/fs/nfsd/nfsfh.c @@ -557,8 +557,10 @@ fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry, if (inode) _fh_update(fhp, exp, dentry); - if (fhp->fh_handle.fh_fileid_type == 255) + if (fhp->fh_handle.fh_fileid_type == 255) { + fh_put(fhp); return nfserr_opnotsupp; + } } return 0;