]> err.no Git - linux-2.6/commit
[PATCH] nfsd4: fix struct file leak
authorNeilBrown <neilb@cse.unsw.edu.au>
Sat, 16 Apr 2005 22:26:38 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:38 +0000 (15:26 -0700)
commitc907132d534c10b4f34a60383c8384403cb424a4
tree706511b06aeeee25615f45701e640d01f4f1d51a
parentf1ee4f22f21d74bc3ca63b95ca5b63d3a8620527
[PATCH] nfsd4: fix struct file leak

We were failing to close on an error path, resulting in a leak of struct files
which could take a v4 server down fairly quickly....  So call
nfs4_close_delegation instead of just open-coding parts of it.

Simplify the cleanup on delegation failure while we're at it.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c