notify: explicit shutdown initialization
Subsystems (2)
PATCH 3/9 notify: explicit shutdown initialization
kzalloc should already do it but explicitly initialize group shutdown variable to false.
Signed-off-by Fabian Frederick <[email protected]>
--- fs/notify/group.c | 1 + 1 file changed, 1 insertion(+)
fs/notify/group.c +1 -0
@@ -130,6 +130,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops)INIT_LIST_HEAD (&group->notification_list);init_waitqueue_head (&group->notification_waitq); group->max_events =UINT_MAX ; + group->shutdown = false;mutex_init (&group->mark_mutex);INIT_LIST_HEAD (&group->marks_list);
Signature · 1 line
2.26.2