From: Eric Paris Date: Fri, 18 Dec 2009 01:12:06 +0000 (-0500) Subject: fsnotify: kzalloc fsnotify groups X-Git-Tag: v2.6.36-rc1~303^2~118 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f0553af054d31f48a75fddd3ef8beb5c39715019;p=~shefty%2Frdma-dev.git 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 --- 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);