aboutsummaryrefslogtreecommitdiffstats
path: root/fs/inotify_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/inotify_user.c')
-rw-r--r--fs/inotify_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/inotify_user.c b/fs/inotify_user.c
index 8b83c7190067..9e9931e2badd 100644
--- a/fs/inotify_user.c
+++ b/fs/inotify_user.c
@@ -380,6 +380,7 @@ static int create_watch(struct inotify_device *dev, struct inode *inode,
380 380
381 atomic_inc(&dev->user->inotify_watches); 381 atomic_inc(&dev->user->inotify_watches);
382 382
383 inotify_init_watch(&watch->wdata);
383 ret = inotify_add_watch(dev->ih, &watch->wdata, inode, mask); 384 ret = inotify_add_watch(dev->ih, &watch->wdata, inode, mask);
384 if (ret < 0) 385 if (ret < 0)
385 free_inotify_user_watch(&watch->wdata); 386 free_inotify_user_watch(&watch->wdata);