path: root/fs/notify/group.c
diff options
authorEric Paris <eparis@redhat.com>2009-12-17 20:12:06 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:20 -0400
commitf0553af054d31f48a75fddd3ef8beb5c39715019 (patch)
tree023a3505df93755f0726ab4ba0dff456ff68c88b /fs/notify/group.c
parent31ddd3268dcb6c1d70e9930a83be43bf86e4bf17 (diff)
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')
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/group.c b/fs/notify/group.c
index 0e1677144bc..777ca821225 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);