mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
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>
This commit is contained in:
parent
d414f4ecb2
commit
5d8cc70c36
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user