summaryrefslogtreecommitdiff
path: root/fs/notify/group.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2020-05-12 21:18:03 +0300
committerJan Kara <jack@suse.cz>2020-05-13 18:14:20 +0300
commit191e1656d18c47d8815f6618431a387d99944884 (patch)
tree826a60d9a6bb1ff7437faf429b2b70b002ade3c8 /fs/notify/group.c
parentab3c4da0ad12fb8b4c80ab2d98ce214a58e00c04 (diff)
downloadlinux-191e1656d18c47d8815f6618431a387d99944884.tar.xz
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/group.c')
-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);
}