2005-12-16 13:28:34

by Martin Schwidefsky

[permalink] [raw]
Subject: [patch 1/3] s390: fix invalid return code in sclp_cpi.

From: Peter Oberparleiter <[email protected]>

[patch 1/3] 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]>

---

drivers/s390/char/sclp_cpi.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -urpN linux-2.6/drivers/s390/char/sclp_cpi.c linux-2.6-patched/drivers/s390/char/sclp_cpi.c
--- linux-2.6/drivers/s390/char/sclp_cpi.c 2005-10-28 02:02:08.000000000 +0200
+++ linux-2.6-patched/drivers/s390/char/sclp_cpi.c 2005-12-16 10:57:22.000000000 +0100
@@ -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();