summaryrefslogtreecommitdiffstats
path: root/net/9p/client.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>2007-07-13 23:47:58 +0200
committerEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>2007-07-14 22:14:19 +0200
commit0af8887ebf4556a76680a61b0bb156d934702c63 (patch)
treee9d8b0fba3825aa085d815a3cd265e1a47ead76e /net/9p/client.c
parent9p: re-enable mount time debug option (diff)
downloadlinux-0af8887ebf4556a76680a61b0bb156d934702c63.tar.xz
linux-0af8887ebf4556a76680a61b0bb156d934702c63.zip
9p: fix a race condition bug in umount which caused a segfault
umounting partitions after heavy activity would sometimes trigger a segmentation violation. This fix appears to remove that problem. Fix originally provided by Latchesar Ionkov. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net/9p/client.c')
-rw-r--r--net/9p/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index bb2b8a3af196..cb170750337c 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -127,12 +127,12 @@ void p9_client_destroy(struct p9_client *clnt)
clnt->trans = NULL;
}
- if (clnt->fidpool)
- p9_idpool_destroy(clnt->fidpool);
-
list_for_each_entry_safe(fid, fidptr, &clnt->fidlist, flist)
p9_fid_destroy(fid);
+ if (clnt->fidpool)
+ p9_idpool_destroy(clnt->fidpool);
+
kfree(clnt);
}
EXPORT_SYMBOL(p9_client_destroy);