summaryrefslogtreecommitdiff
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 2b772613a74c..4a15e09bc398 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -961,7 +961,7 @@ static int bm_fill_super(struct super_block *sb, struct fs_context *fc)
* create their own separate binfmt_misc mounts we should
* consider turning this into a kmem cache.
*/
- misc = kzalloc(sizeof(struct binfmt_misc), GFP_KERNEL);
+ misc = kzalloc_obj(struct binfmt_misc, GFP_KERNEL);
if (!misc)
return -ENOMEM;