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

From: Martin Schwidefsky
Date: Fri Dec 16 2005 - 08:27:33 EST


From: Peter Oberparleiter <peter.oberparleiter@xxxxxxxxxx>

[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 <peter.oberparleiter@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>

---

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();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/