s390/pkey: Rework CCA pkey handler to use stack for small memory allocs
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 24 Apr 2025 13:36:13 +0000 (15:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 09:34:02 +0000 (11:34 +0200)
commitc45dabf47e76cc60721301c4ee03926c52be49ca
treee10eae824c47852ecc01d11799c0005e758a0680
parent6fecab9b922aeb8fc5ebaf5aeecf8f7a1c2eb58b
s390/pkey: Rework CCA pkey handler to use stack for small memory allocs

There have been some places in the CCA handler code where relatively
small amounts of memory have been allocated an freed at the end
of the function. This code has been reworked to use the stack instead.

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-20-freude@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/pkey_cca.c