]> git.baikalelectronics.ru Git - kernel.git/commit
s390/crypto: fix scatterwalk_unmap() callers in AES-GCM
authorJann Horn <jannh@google.com>
Tue, 17 May 2022 14:30:47 +0000 (16:30 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 May 2022 09:46:02 +0000 (11:46 +0200)
commite318f75a00483df13dd41b4136c6a04e2a1adc85
treef85f136c099538163da5084d2d9149eafee238bc
parenta3ba860fc32dcad5ed421bd7b8b0715578a3da25
s390/crypto: fix scatterwalk_unmap() callers in AES-GCM

The argument of scatterwalk_unmap() is supposed to be the void* that was
returned by the previous scatterwalk_map() call.
The s390 AES-GCM implementation was instead passing the pointer to the
struct scatter_walk.

This doesn't actually break anything because scatterwalk_unmap() only uses
its argument under CONFIG_HIGHMEM and ARCH_HAS_FLUSH_ON_KUNMAP.

Fixes: b76121d790c4 ("s390/crypto: add s390 platform specific aes gcm support.")
Signed-off-by: Jann Horn <jannh@google.com>
Acked-by: Harald Freudenberger <freude@linux.ibm.com>
Link: https://lore.kernel.org/r/20220517143047.3054498-1-jannh@google.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/crypto/aes_s390.c