Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0553af0 authored by Eric Paris's avatar Eric Paris
Browse files

fsnotify: kzalloc fsnotify groups



Use kzalloc for fsnotify_groups so that none of the fields can leak any
information accidentally.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 31ddd326
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ struct fsnotify_group *fsnotify_obtain_group(unsigned int group_num, __u32 mask,
	struct fsnotify_group *group, *tgroup;

	/* very low use, simpler locking if we just always alloc */
	group = kmalloc(sizeof(struct fsnotify_group), GFP_KERNEL);
	group = kzalloc(sizeof(struct fsnotify_group), GFP_KERNEL);
	if (!group)
		return ERR_PTR(-ENOMEM);