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:
7bb9f1c
)
Unionfs: unionfs_permission locking fixes
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 a1eecc6d3ea9e56435ad86cc537eb4682371a457..b2f88ecde005199ad2e2310090034e6a9b5747ba 100644
(file)
--- a/
fs/unionfs/inode.c
+++ b/
fs/unionfs/inode.c
@@
-781,6
+781,7
@@
static int unionfs_permission(struct inode *inode, int mask,
int bindex, bstart, bend;
const int is_file = !S_ISDIR(inode->i_mode);
const int write_mask = (mask & MAY_WRITE) && !(mask & MAY_READ);
+ struct inode *inode_grabbed = igrab(inode);
if (nd)
unionfs_lock_dentry(nd->dentry, UNIONFS_DMUTEX_CHILD);
@@
-860,6
+861,7
@@
out:
unionfs_check_inode(inode);
if (nd)
unionfs_unlock_dentry(nd->dentry);
+ iput(inode_grabbed);
return err;
}