dm crypt: Initialize crypto wait structures
commit5.4-rM2-2.2.x-imx-squashed7785a9e4c2
upstream. Use the DECLARE_CRYPTO_WAIT() macro to properly initialize the crypto wait structures declared on stack before their use with crypto_wait_req(). Fixes:39d13a1ac4
("dm crypt: reuse eboiv skcipher for IV generation") Fixes:bbb1658461
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
e6ddb1d45c
commit
9dd74db0bf
|
@ -720,7 +720,7 @@ static int crypt_iv_eboiv_gen(struct crypt_config *cc, u8 *iv,
|
||||||
u8 buf[MAX_CIPHER_BLOCKSIZE] __aligned(__alignof__(__le64));
|
u8 buf[MAX_CIPHER_BLOCKSIZE] __aligned(__alignof__(__le64));
|
||||||
struct skcipher_request *req;
|
struct skcipher_request *req;
|
||||||
struct scatterlist src, dst;
|
struct scatterlist src, dst;
|
||||||
struct crypto_wait wait;
|
DECLARE_CRYPTO_WAIT(wait);
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
req = skcipher_request_alloc(any_tfm(cc), GFP_NOIO);
|
req = skcipher_request_alloc(any_tfm(cc), GFP_NOIO);
|
||||||
|
|
Loading…
Reference in New Issue