s390/pai_crypto: return proper error code in paicrypt_init
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 22 Jan 2024 12:36:05 +0000 (13:36 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 9 Feb 2024 12:58:14 +0000 (13:58 +0100)
commit5d8cc70c36c42aa33e595836af2faaaaeb314fb5
treee38bee941e81ee3bdc80175eadeec3b5288fe259
parentd414f4ecb240b994cba8c9666def0a4b9c953601
s390/pai_crypto: return proper error code in paicrypt_init

paicrypt_init() return incorrect error code in case the number
of PAI crypto counters is too high. Change the return code to
-E2BIG.

Please merge with d0b0efedc7fe

Reported-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c