diff mbox series

[4/9,linux-next] notify: add mutex destroy

Message ID 20200511180059.215002-1-fabf@skynet.be (mailing list archive)
State New, archived
Headers show
Series fs/notify: cleanup | expand

Commit Message

Fabian Frederick May 11, 2020, 6 p.m. UTC
destroy mutex before group kfree

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/notify/group.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/notify/group.c b/fs/notify/group.c
index f2cba2265061..0a2dc03d13eb 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);
 }