From 191e1656d18c47d8815f6618431a387d99944884 Mon Sep 17 00:00:00 2001 From: Fabian Frederick Date: Tue, 12 May 2020 20:18:03 +0200 Subject: [PATCH] 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 Reviewed-by: Amir Goldstein Signed-off-by: Jan Kara --- fs/notify/group.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/notify/group.c b/fs/notify/group.c index 133f723aca070..a4a4b1c64d32a 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); } -- 2.30.2