dm crypt: fix copy and paste bug in crypt_alloc_req_aead
authorIgnat Korchagin <ignat@cloudflare.com>
Tue, 19 Jan 2021 20:40:15 +0000 (20:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2021 10:54:52 +0000 (11:54 +0100)
commitc5f23645ab51025d196966198cf318209fe2b290
tree0dcacea429c0aa13bbe83b636e17b5dd9557e9a0
parent367733db7a10c5575d0bd3bb8f6fa7d26c6ed904
dm crypt: fix copy and paste bug in crypt_alloc_req_aead

commit 004b8ae9e2de55ca7857ba8471209dd3179e088c upstream.

In commit d68b29584c25 ("dm crypt: use GFP_ATOMIC when allocating
crypto requests from softirq") code was incorrectly copy and pasted
from crypt_alloc_req_skcipher()'s crypto request allocation code to
crypt_alloc_req_aead(). It is OK from runtime perspective as both
simple encryption request pointer and AEAD request pointer are part of
a union, but may confuse code reviewers.

Fixes: d68b29584c25 ("dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq")
Cc: stable@vger.kernel.org # v5.9+
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Ignat Korchagin <ignat@cloudflare.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-crypt.c