]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/zcrypt: Rework cca findcard() implementation and callers
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 24 Apr 2025 13:36:07 +0000 (15:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 09:34:01 +0000 (11:34 +0200)
commit95de56ae0db0fb039f3ae3ddfa1a281508fcef4f
tree7850424ee22c53344a378abb287d48874b42e25a
parent2845ad7466af7d2ee218ddbe2896c7c5532b9f73
s390/zcrypt: Rework cca findcard() implementation and callers

Rework the memory usage of the cca findcard() implementation:
- findcard does not allocate memory for the list of apqns
  any more.
- the callers are now responsible to provide an array of
  apqns to store the matching apqns into.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Link: https://lore.kernel.org/r/20250424133619.16495-14-freude@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/pkey_cca.c
drivers/s390/crypto/zcrypt_ccamisc.c
drivers/s390/crypto/zcrypt_ccamisc.h