]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/zcrypt: Rework cca misc functions kmallocs to use the cprb mempool
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 24 Apr 2025 13:36:09 +0000 (15:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 09:34:02 +0000 (11:34 +0200)
commit989ed61ea8eafd8a939282eeb502dc9fc6e3e6c8
treef09da46b399c2a99a5c53186c9124fe94f975288
parent8a8832254100e24fd6ba99ce92a62a4964566a29
s390/zcrypt: Rework cca misc functions kmallocs to use the cprb mempool

Rework two places in the zcrypt cca misc code using kmalloc() for
ephemeral memory allocation. As there is anyway now a cprb mempool
let's use this pool instead to satisfy these short term memory
allocations.

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