diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h index 5b50551c85f6..5ceeaacb78b2 100644 --- a/include/linux/fsnotify.h +++ b/include/linux/fsnotify.h @@ -271,7 +271,8 @@ static inline void fsnotify_open(struct file *file) if (path->dentry->d_op && path->dentry->d_op->d_canonical_path) { path->dentry->d_op->d_canonical_path(path, &lower_path); - fsnotify_parent(lower_path.dentry, mask, NULL, FSNOTIFY_EVENT_PATH); + fsnotify_parent(lower_path.dentry, mask, &lower_path, + FSNOTIFY_EVENT_PATH); fsnotify(lower_path.dentry->d_inode, mask, &lower_path, FSNOTIFY_EVENT_PATH, NULL, 0); path_put(&lower_path); }