git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfsd4: filehandle leak or error exit from fh_compose()
[safe/jmp/linux-2.6]
/
fs
/
nfsd
/
nfsfh.c
diff --git
a/fs/nfsd/nfsfh.c
b/fs/nfsd/nfsfh.c
index
bce0b2b
..
01965b2
100644
(file)
--- 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,
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;