git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge remote-tracking branch 'torvalds/master' into perf/core
[sfrench/cifs-2.6.git]
/
fs
/
notify
/
inotify
/
inotify_user.c
diff --git
a/fs/notify/inotify/inotify_user.c
b/fs/notify/inotify/inotify_user.c
index 266d17e8ecb9824b25df1eba5410d70b6581d9a5..c71be4fb7dc5dbad5de4bf630ee213f7aec4c3ea 100644
(file)
--- a/
fs/notify/inotify/inotify_user.c
+++ b/
fs/notify/inotify/inotify_user.c
@@
-352,7
+352,7
@@
static int inotify_find_inode(const char __user *dirname, struct path *path,
if (error)
return error;
/* you can only watch an inode if you have read permissions on it */
- error =
inode_permission(path->dentry->d_inode
, MAY_READ);
+ error =
path_permission(path
, MAY_READ);
if (error) {
path_put(path);
return error;