diff --git a/[refs] b/[refs] index 0fb3fa4540e6..e6a941f1b897 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2ba84684e8cf6f980e4e95a2300f53a505eb794e +refs/heads/master: 0bf955ce98cb3cf40e20d0cc435299eb76e8819e diff --git a/trunk/fs/inotify.c b/trunk/fs/inotify.c index 27ebcac5e07f..868901b1e779 100644 --- a/trunk/fs/inotify.c +++ b/trunk/fs/inotify.c @@ -402,7 +402,7 @@ static struct inotify_watch *create_watch(struct inotify_device *dev, return ERR_PTR(ret); } - dev->last_wd = ret; + dev->last_wd = watch->wd; watch->mask = mask; atomic_set(&watch->count, 0); INIT_LIST_HEAD(&watch->d_list);