mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] s390: fix invalid return code in sclp_cpi
When the sclp_cpi module is loaded on a system which does not support the required SCLP call (e.g. on z/VM), ENOSUPP is returned to user space. The correct return value is EOPNOTSUPP. Signed-off-by: Peter Oberparleiter <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3b793060e7
commit
9bbc8346fb
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ cpi_module_init(void)
|
|||
printk(KERN_WARNING "cpi: no control program identification "
|
||||
"support\n");
|
||||
sclp_unregister(&sclp_cpi_event);
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
req = cpi_prepare_req();
|
||||
|
|
|
|||
Loading…
Reference in a new issue