projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ddd32
)
fsnotify: kzalloc fsnotify groups
author
Eric Paris
<eparis@redhat.com>
Fri, 18 Dec 2009 01:12:06 +0000
(20:12 -0500)
committer
Eric Paris
<eparis@redhat.com>
Wed, 28 Jul 2010 13:58:20 +0000
(09:58 -0400)
Use kzalloc for fsnotify_groups so that none of the fields can leak any
information accidentally.
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/group.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/group.c
b/fs/notify/group.c
index 0e1677144bc54222644eb009209468ebe0331b95..777ca8212255974103a5b9d8703f60d2c43a312a 100644
(file)
--- 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 = k
m
alloc(sizeof(struct fsnotify_group), GFP_KERNEL);
+ group = k
z
alloc(sizeof(struct fsnotify_group), GFP_KERNEL);
if (!group)
return ERR_PTR(-ENOMEM);