Skip to content

Commit 9bbc834

Browse files
oberparLinus Torvalds
authored andcommitted
[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 <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 3b79306 commit 9bbc834

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/s390/char/sclp_cpi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ cpi_module_init(void)
204204
printk(KERN_WARNING "cpi: no control program identification "
205205
"support\n");
206206
sclp_unregister(&sclp_cpi_event);
207-
return -ENOTSUPP;
207+
return -EOPNOTSUPP;
208208
}
209209

210210
req = cpi_prepare_req();

0 commit comments

Comments
 (0)