summaryrefslogtreecommitdiff
path: root/fs/pstore/blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pstore/blk.c')
-rw-r--r--fs/pstore/blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/blk.c b/fs/pstore/blk.c
index fa6b8cb788a1..0c9c8b6fdbb8 100644
--- a/fs/pstore/blk.c
+++ b/fs/pstore/blk.c
@@ -297,7 +297,7 @@ static int __init __best_effort_init(void)
return -EINVAL;
}
- best_effort_dev = kzalloc(sizeof(*best_effort_dev), GFP_KERNEL);
+ best_effort_dev = kzalloc_obj(*best_effort_dev, GFP_KERNEL);
if (!best_effort_dev)
return -ENOMEM;