projects
/
unionfs-2.6.18.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d30f4c
)
Unionfs: return EINVAL in setattr on error
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 20:06:50 +0000
(16:06 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 20:06:50 +0000
(16:06 -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 56b0c35a3645b520e1e35f101bbbb694ff135e96..ac49de7e767fd42e90e993001f1318f966477938 100644
(file)
--- a/
fs/unionfs/inode.c
+++ b/
fs/unionfs/inode.c
@@
-895,7
+895,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 */