Skip to content

Commit 191e165

Browse files
Fabian Frederickjankara
authored andcommitted
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/[email protected] Signed-off-by: Fabian Frederick <[email protected]> Reviewed-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent ab3c4da commit 191e165

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/notify/group.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ static void fsnotify_final_destroy_group(struct fsnotify_group *group)
2525
group->ops->free_group_priv(group);
2626

2727
mem_cgroup_put(group->memcg);
28+
mutex_destroy(&group->mark_mutex);
2829

2930
kfree(group);
3031
}

0 commit comments

Comments
 (0)