From: Eric Van Hensbergen Date: Sun, 8 Jan 2006 09:04:56 +0000 (-0800) Subject: [PATCH] v9fs: fix fd_close X-Git-Tag: v2.6.16-rc1~711 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5ef3c105bee3a52486d7b55cef3330fcde9bca6;p=pandora-kernel.git [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 Signed-off-by: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed