inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()
authorZhangXiaoxu <zhangxiaoxu5@huawei.com>
Sat, 2 Mar 2019 01:17:32 +0000 (09:17 +0800)
committerJan Kara <jack@suse.cz>
Mon, 11 Mar 2019 09:13:17 +0000 (10:13 +0100)
commit62c9d2674b31d4c8a674bee86b7edc6da2803aea
tree749addcfc56de7c36293ec2df114724d73274925
parent12ad143e1b803e541e48b8ba40f550250259ecdd
inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch()

Commit 4d97f7d53da7dc83 ("inotify: Add flag IN_MASK_CREATE for
inotify_add_watch()") forgot to call fsnotify_put_mark() with
IN_MASK_CREATE after fsnotify_find_mark()

Fixes: 4d97f7d53da7dc83 ("inotify: Add flag IN_MASK_CREATE for inotify_add_watch()")
Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/inotify/inotify_user.c