summaryrefslogtreecommitdiffstats
path: root/fs/notify/group.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-18 02:12:06 +0100
committerEric Paris <eparis@redhat.com>2010-07-28 15:58:20 +0200
commitf0553af054d31f48a75fddd3ef8beb5c39715019 (patch)
tree023a3505df93755f0726ab4ba0dff456ff68c88b /fs/notify/group.c
parentinotify: use container_of instead of casting (diff)
downloadlinux-f0553af054d31f48a75fddd3ef8beb5c39715019.tar.xz
linux-f0553af054d31f48a75fddd3ef8beb5c39715019.zip
fsnotify: kzalloc fsnotify groups
Use kzalloc for fsnotify_groups so that none of the fields can leak any information accidentally. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/group.c')
-rw-r--r--fs/notify/group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c
index 0e1677144bc5..777ca8212255 100644
--- a/fs/notify/group.c
+++ b/fs/notify/group.c
@@ -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);