From: [email protected]
In au_br_del, we free up br in au_br_do_del and later on access br.
Avoid deference on br to prevent crash.

Signed-off-by: Thayumanavar Sachithanantham <[email protected]>
---
--- aufs2-2.6/fs/aufs/branch.c.orig     2010-07-19 11:32:41.000000000 -0400
+++ aufs2-2.6/fs/aufs/branch.c  2010-07-19 11:34:08.000000000 -0400
@@ -794,7 +794,7 @@ int au_br_del(struct super_block *sb, st
        if (au_opt_test(mnt_flags, PLINK))
                au_plink_half_refresh(sb, br_id);

-       if (au_xino_brid(sb) == br->br_id)
+       if (au_xino_brid(sb) == br_id)
                au_xino_brid_set(sb, -1);
        goto out; /* success */

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

Reply via email to