blk-crypto: use bio_kmalloc in blk_crypto_clone_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:33 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commit4eb1d689045552eb966ebf25efbc3ce648797d96
treecda38ac90c4a011076f17300d5b585c3da21218a
parent616c6a6884e273349cda19483dfd7f5b7fd3da52
blk-crypto: use bio_kmalloc in blk_crypto_clone_bio

Use bio_kmalloc instead of open coding it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-crypto-fallback.c