projects
/
unionfs-2.6.22.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69f99f8
)
Unionfs: unionfs_permission locking fixes
author
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 04:02:56 +0000
(
00:02
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Fri, 19 Sep 2008 04:02:56 +0000
(
00:02
-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 5dad8d941eeaa7568c8de6182d7aa21923e64252..0ea6e79101421da17ecc0d6b738797ba8d627527 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;
}