OSDN Git Service

s390/zcrypt: fix kmalloc 256k failure
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 9 Sep 2020 09:59:43 +0000 (11:59 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 08:08:07 +0000 (10:08 +0200)
commitb6186d7fb53349efd274263a45f0b08749ccaa2d
tree1b8b1d73a4267645581e93ec61c74f220d65b919
parentca589ea8d1b64938329c016a5c07fc2eea985712
s390/zcrypt: fix kmalloc 256k failure

Tests showed that under stress conditions the kernel may
temporary fail to allocate 256k with kmalloc. However,
this fix reworks the related code in the cca_findcard2()
function to use kvmalloc instead.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ccamisc.c