diff options
Diffstat (limited to 'fs/inotify_user.c')
-rw-r--r-- | fs/inotify_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c index 9ef4d212c507..e9c58652533a 100644 --- a/fs/inotify_user.c +++ b/fs/inotify_user.c | |||
@@ -667,7 +667,7 @@ asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask) | |||
667 | goto fput_and_out; | 667 | goto fput_and_out; |
668 | 668 | ||
669 | /* inode held in place by reference to nd; dev by fget on fd */ | 669 | /* inode held in place by reference to nd; dev by fget on fd */ |
670 | inode = nd.dentry->d_inode; | 670 | inode = nd.path.dentry->d_inode; |
671 | dev = filp->private_data; | 671 | dev = filp->private_data; |
672 | 672 | ||
673 | mutex_lock(&dev->up_mutex); | 673 | mutex_lock(&dev->up_mutex); |