]> git.baikalelectronics.ru Git - kernel.git/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)
commit233321ac88a68fdcc6af9f2cb1072f8d37491bb9
tree922544836dc62cb7702a2e5c3257f8f66d55ae9c
parentf8fc4c23cb2de7467173642fb1560340cdef4bf8
[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