]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: Initialize crypto wait structures
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 31 Aug 2020 05:55:55 +0000 (14:55 +0900)
committerMike Snitzer <snitzer@redhat.com>
Tue, 1 Sep 2020 20:41:57 +0000 (16:41 -0400)
commit56f4a34144f9edece5a8bbaec44e6685aef19dab
tree73cf6193dc1497763fcbb2d5f4760997d660c9dc
parentdf2dba03269193a3ea5ef64175999b0373592c5f
dm crypt: Initialize crypto wait structures

Use the DECLARE_CRYPTO_WAIT() macro to properly initialize the crypto
wait structures declared on stack before their use with
crypto_wait_req().

Fixes: d28b2eb34f34 ("dm crypt: reuse eboiv skcipher for IV generation")
Fixes: db96758f1b79 ("dm crypt: Implement Elephant diffuser for Bitlocker compatibility")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c