commit ed5f050219c6c1d2c6fb67c2f8cb9c5b37b2041b
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 d09fb57..6a93219 100644
--- a/fs/unionfs/union.h
+++ b/fs/unionfs/union.h
@@ -475,13 +475,13 @@ static inline void unionfs_mntput(struct dentry *dentry,
int bindex)
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