s390/cio: fix return code after missing interrupt
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 7 Feb 2018 12:18:19 +0000 (13:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 22 Feb 2018 09:09:25 +0000 (10:09 +0100)
commit770b55c995d171f026a9efb85e71e3b1ea47b93d
tree0d6bbd77ce82fd0727c2dcdb272de2ecc7a3bf89
parentf97a6b6c47d2f329a24f92cc0ca3c6df5727ba73
s390/cio: fix return code after missing interrupt

When a timeout occurs for users of ccw_device_start_timeout
we will stop the IO and call the drivers int handler with
the irb pointer set to ERR_PTR(-ETIMEDOUT). Sometimes
however we'd set the irb pointer to ERR_PTR(-EIO) which is
not intended. Just set the correct value in all codepaths.

Reported-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device_fsm.c
drivers/s390/cio/io_sch.h