Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0af8887ebf4556a76680a61b0bb156d934702c63
Commit:     0af8887ebf4556a76680a61b0bb156d934702c63
Parent:     9e2f6688c0b52882496aff576b009bc1f7eea0b8
Author:     Eric Van Hensbergen <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 13 16:47:58 2007 -0500
Committer:  Eric Van Hensbergen <[EMAIL PROTECTED]>
CommitDate: Sat Jul 14 15:14:19 2007 -0500

    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 <[EMAIL PROTECTED]>
---
 net/9p/client.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/9p/client.c b/net/9p/client.c
index bb2b8a3..cb17075 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to