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)
commit7785a9e4c228db6d01086a52d5685cd7336a08b7
tree73cf6193dc1497763fcbb2d5f4760997d660c9dc
parentc322ee9320eaa4013ca3620b1130992916b19b31
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: 39d13a1ac41d ("dm crypt: reuse eboiv skcipher for IV generation")
Fixes: bbb1658461ac ("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