summaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2020-05-12 20:18:03 +0200
committerJan Kara <jack@suse.cz>2020-05-13 17:14:20 +0200
commit191e1656d18c47d8815f6618431a387d99944884 (patch)
tree826a60d9a6bb1ff7437faf429b2b70b002ade3c8 /fs/notify
parentfanotify: prefix should_merge() (diff)
downloadlinux-191e1656d18c47d8815f6618431a387d99944884.tar.xz
linux-191e1656d18c47d8815f6618431a387d99944884.zip
fsnotify: add mutex destroy
Call mutex_destroy() before freeing notification group. This only adds some additional debug checks when mutex debugging is enabled but still it may be useful. Link: https://lore.kernel.org/r/20200512181803.405832-1-fabf@skynet.be Signed-off-by: Fabian Frederick <fabf@skynet.be> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify')
-rw-r--r--fs/notify/group.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c
index 133f723aca07..a4a4b1c64d32 100644
--- a/fs/notify/group.c
+++ b/fs/notify/group.c
@@ -25,6 +25,7 @@ static void fsnotify_final_destroy_group(struct fsnotify_group *group)
group->ops->free_group_priv(group);
mem_cgroup_put(group->memcg);
+ mutex_destroy(&group->mark_mutex);
kfree(group);
}