projects
/
unionfs-2.6.24.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db5ce78
)
Unionfs: return EINVAL in setattr on error
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 03:00:23 +0000
(23:00 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 03:00:23 +0000
(23:00 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/inode.c
b/fs/unionfs/inode.c
index 22f2c323dfd216b0cb4357e3c845ca5e94b4498c..62311d2fafd2f9efdbfa8e59208dee826233c5fd 100644
(file)
--- a/
fs/unionfs/inode.c
+++ b/
fs/unionfs/inode.c
@@
-914,7
+914,10
@@
static int unionfs_setattr(struct dentry *dentry, struct iattr *ia)
ia->ia_valid &= ~ATTR_MODE;
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 */