]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] v9fs: fix fd_close
authorEric Van Hensbergen <ericvh@gmail.com>
Sun, 8 Jan 2006 09:04:56 +0000 (01:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:05 +0000 (20:14 -0800)
commitf5ef3c105bee3a52486d7b55cef3330fcde9bca6
tree528a6b32cb8fbbeeced3a147e77fc544567e3a6f
parent7e7f358c8f8f836c504faa293fda0c1c0733b63c
[PATCH] v9fs: fix fd_close

If a 9pfs server crashes, v9fs_fd_close() is called.  Subsequently, in
cleaning up by performing a umount() on the FS that was provided by this
server v9fs_fd_close() is called again, and uses the old, freed valus of
trans->priv.  This patch ensures that trans->priv can be freed only once,
otherwise this function bails early.

Signed-off-by: Michal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/trans_fd.c