summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.ibm.com>2024-01-22 15:36:05 +0300
committerHeiko Carstens <hca@linux.ibm.com>2024-02-09 15:58:14 +0300
commit5d8cc70c36c42aa33e595836af2faaaaeb314fb5 (patch)
treee38bee941e81ee3bdc80175eadeec3b5288fe259 /arch
parentd414f4ecb240b994cba8c9666def0a4b9c953601 (diff)
downloadlinux-5d8cc70c36c42aa33e595836af2faaaaeb314fb5.tar.xz
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/kernel/perf_pai_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/perf_pai_crypto.c b/arch/s390/kernel/perf_pai_crypto.c
index ffde6d5001b7..7e7472aee4e5 100644
--- a/arch/s390/kernel/perf_pai_crypto.c
+++ b/arch/s390/kernel/perf_pai_crypto.c
@@ -749,7 +749,7 @@ static int __init paicrypt_init(void)
return 0;
if (paicrypt_cnt >= PAI_CRYPTO_MAXCTR) {
pr_err("Too many PMU pai_crypto counters %d\n", paicrypt_cnt);
- return -1;
+ return -E2BIG;
}
rc = attr_event_init(); /* Export known PAI crypto events */