]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] cio: handle ssch() return codes correctly.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 9 Sep 2008 10:38:58 +0000 (12:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Sep 2008 10:39:07 +0000 (12:39 +0200)
commit2fc801f1c140a83a190924a5799ebfcccc7d4717
tree684d5fe1b335ea669256fb6a3c2ee2efc5c996d1
parentef686bfc8fe95cd5adcc9e548867d6708e2234cd
[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 <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cio.c