commit 9c581db422e57d0270d68437de37bcbe59caa58e
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Fri May 11 01:51:48 2007 -0400
bugfix in BUG_ON use: actually catch bad use of unionfs_mntput
diff --git a/fs/unionfs/union.h b/fs/unionfs/union.h
index
d09fb5711e0aa88a7e6cd364190f6edbd0639f5d..6a93219536c4166330114546336d9a7ec2e39233
100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -475,13 +475,13 @@ static inline void unionfs_mntput(struct
if (!dentry) {
if (bindex < 0)
return;
- BUG_ON(dentry && bindex < 0);
+ BUG_ON(!dentry && bindex >= 0);
}
mnt = unionfs_lower_mnt_idx(dentry, bindex);
if (!mnt) {
if (bindex < 0)
return;
- BUG_ON(mnt && bindex < 0);
+ BUG_ON(!mnt && bindex >= 0);
}
mntput(mnt);
}
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs