summaryrefslogtreecommitdiff
path: root/drivers/md/dm-inlinecrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-inlinecrypt.c')
-rw-r--r--drivers/md/dm-inlinecrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-inlinecrypt.c b/drivers/md/dm-inlinecrypt.c
index 66fa2f9d1fdc..3479dfe5f708 100644
--- a/drivers/md/dm-inlinecrypt.c
+++ b/drivers/md/dm-inlinecrypt.c
@@ -322,7 +322,7 @@ static int inlinecrypt_ctr(struct dm_target *ti, unsigned int argc, char **argv)
return -EINVAL;
}
- ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
+ ctx = kzalloc_obj(*ctx);
if (!ctx) {
ti->error = "Out of memory";
return -ENOMEM;