Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Peter Oberparleiter and committed by
Linus Torvalds
9bbc8346 3b793060

+1 -1
+1 -1
drivers/s390/char/sclp_cpi.c
··· 204 204 printk(KERN_WARNING "cpi: no control program identification " 205 205 "support\n"); 206 206 sclp_unregister(&sclp_cpi_event); 207 - return -ENOTSUPP; 207 + return -EOPNOTSUPP; 208 208 } 209 209 210 210 req = cpi_prepare_req();