summaryrefslogtreecommitdiff
path: root/fs/notify/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/notify/mark.c')
-rw-r--r--fs/notify/mark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/mark.c b/fs/notify/mark.c
index 8e6997e9aebb..691d36104ae2 100644
--- a/fs/notify/mark.c
+++ b/fs/notify/mark.c
@@ -644,7 +644,7 @@ static int fsnotify_attach_info_to_sb(struct super_block *sb)
struct fsnotify_sb_info *sbinfo;
/* sb info is freed on fsnotify_sb_delete() */
- sbinfo = kzalloc(sizeof(*sbinfo), GFP_KERNEL);
+ sbinfo = kzalloc_obj(*sbinfo, GFP_KERNEL);
if (!sbinfo)
return -ENOMEM;