Skip to content
Commit bd52cd5e authored by Jann Horn's avatar Jann Horn Committed by Heiko Carstens
Browse files

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: bf7fa038 ("s390/crypto: add s390 platform specific aes gcm support.")
Signed-off-by: default avatarJann Horn <jannh@google.com>
Acked-by: default avatarHarald Freudenberger <freude@linux.ibm.com>
Link: https://lore.kernel.org/r/20220517143047.3054498-1-jannh@google.com


Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 94d34778
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment