Commit 0af8887e authored by Eric Van Hensbergen's avatar Eric Van Hensbergen

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: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 9e2f6688
...@@ -127,12 +127,12 @@ void p9_client_destroy(struct p9_client *clnt) ...@@ -127,12 +127,12 @@ void p9_client_destroy(struct p9_client *clnt)
clnt->trans = NULL; clnt->trans = NULL;
} }
if (clnt->fidpool)
p9_idpool_destroy(clnt->fidpool);
list_for_each_entry_safe(fid, fidptr, &clnt->fidlist, flist) list_for_each_entry_safe(fid, fidptr, &clnt->fidlist, flist)
p9_fid_destroy(fid); p9_fid_destroy(fid);
if (clnt->fidpool)
p9_idpool_destroy(clnt->fidpool);
kfree(clnt); kfree(clnt);
} }
EXPORT_SYMBOL(p9_client_destroy); EXPORT_SYMBOL(p9_client_destroy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment