aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-io.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 09:34:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 09:34:03 -0700
commit11e7c21880617b8383ad8ad059ae9a07e5abe68e (patch)
tree67358d449514f8948f2c8678a7743eab24fffde4 /drivers/md/dm-io.c
parentMerge branch 'faddr2line' (patches from Josh) (diff)
parentdm: Use kzalloc for all structs with embedded biosets/mempools (diff)
downloadlinux-dev-11e7c21880617b8383ad8ad059ae9a07e5abe68e.tar.xz
linux-dev-11e7c21880617b8383ad8ad059ae9a07e5abe68e.zip
Merge tag 'for-linus-20180605' of git://git.kernel.dk/linux-block
Pull block fixes from Jens Axboe: "This just contains the dm kzalloc fix that was discussed, and a fix that I queued up yesterday for a case where blk-mq doesn't honor the stop bit appropriately" * tag 'for-linus-20180605' of git://git.kernel.dk/linux-block: dm: Use kzalloc for all structs with embedded biosets/mempools blk-mq: return when hctx is stopped in blk_mq_run_work_fn
Diffstat (limited to 'drivers/md/dm-io.c')
-rw-r--r--drivers/md/dm-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-io.c b/drivers/md/dm-io.c
index 53c6ed0eaa1f..81ffc59d05c9 100644
--- a/drivers/md/dm-io.c
+++ b/drivers/md/dm-io.c
@@ -51,7 +51,7 @@ struct dm_io_client *dm_io_client_create(void)
unsigned min_ios = dm_get_reserved_bio_based_ios();
int ret;
- client = kmalloc(sizeof(*client), GFP_KERNEL);
+ client = kzalloc(sizeof(*client), GFP_KERNEL);
if (!client)
return ERR_PTR(-ENOMEM);