From: Cornelia Huck Date: Tue, 9 Sep 2008 10:38:58 +0000 (+0200) Subject: [S390] cio: handle ssch() return codes correctly. X-Git-Tag: v2.6.27-rc6~5^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c91ebe496120e05301465fff31094bfecf798e9f;p=linux-2.6-omap-h63xx.git [S390] cio: handle ssch() return codes correctly. ssch() has two classes of return codes: - condition codes (0-3) which need to be translated to Linux error codes - Linux error codes (-EIO on exceptions) which should be passed to the caller (instead of erronously being handled like condition code 3) Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index 33bff8fec7d..5954b905e3c 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c @@ -208,8 +208,10 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */ case 1: /* status pending */ case 2: /* busy */ return -EBUSY; - default: /* device/path not operational */ + case 3: /* device/path not operational */ return cio_start_handle_notoper(sch, lpm); + default: + return ccode; } }