summaryrefslogtreecommitdiff
path: root/fs/notify
diff options
context:
space:
mode:
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
parent31ddd3268dcb6c1d70e9930a83be43bf86e4bf17 (diff)
downloadlinux-exynos-f0553af054d31f48a75fddd3ef8beb5c39715019.tar.gz
linux-exynos-f0553af054d31f48a75fddd3ef8beb5c39715019.tar.bz2
linux-exynos-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')
-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);