Skip to content

Commit

Permalink
9p: fix a race condition bug in umount which caused a segfault
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Van Hensbergen committed Jul 14, 2007
1 parent 9e2f668 commit 0af8887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0af8887

Please sign in to comment.