commit 4ae399a3a2aa363764b844a50150610de71bd4a4
Author: Erez Zadok <[EMAIL PROTECTED]>
Date: Thu Sep 18 23:20:58 2008 -0400
Unionfs: return EINVAL in setattr on error
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index b1a454a..4737be2 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -907,7 +907,10 @@ static int unionfs_setattr(struct dentry *dentry, struct
iattr *ia)
inode = dentry->d_inode;
lower_dentry = unionfs_lower_dentry(dentry);
- BUG_ON(!lower_dentry); /* should never happen after above revalidate */
+ if (!lower_dentry) { /* should never happen after above revalidate */
+ err = -EINVAL;
+ goto out;
+ }
lower_inode = unionfs_lower_inode(inode);
/* check if user has permission to change lower inode */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs