diff options
author | Fabian Frederick <fabf@skynet.be> | 2020-05-12 20:18:03 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-05-13 17:14:20 +0200 |
commit | 191e1656d18c47d8815f6618431a387d99944884 (patch) | |
tree | 826a60d9a6bb1ff7437faf429b2b70b002ade3c8 | |
parent | ab3c4da0ad12fb8b4c80ab2d98ce214a58e00c04 (diff) |
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>
-rw-r--r-- | fs/notify/group.c | 1 |
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); } |