aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
207 struct fsnotify_group *group, *tgroup; 207 struct fsnotify_group *group, *tgroup;
208 208
209 /* very low use, simpler locking if we just always alloc */ 209 /* very low use, simpler locking if we just always alloc */
210 group = kmalloc(sizeof(struct fsnotify_group), GFP_KERNEL); 210 group = kzalloc(sizeof(struct fsnotify_group), GFP_KERNEL);
211 if (!group) 211 if (!group)
212 return ERR_PTR(-ENOMEM); 212 return ERR_PTR(-ENOMEM);
213 213