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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:01 +0000 (07:52 +0200)
commitc5b1b2e2185db4c5eeb72d8f61a1ba0c1f7a752c
tree704531cc6c172ce1abecf6eac7d3e8af1f6cb9aa
parent5df337455c5a7a4adb1dc71a577608d63221fd1e
s390/cio: fix return code after missing interrupt

[ Upstream commit 770b55c995d171f026a9efb85e71e3b1ea47b93d ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/cio/device_fsm.c
drivers/s390/cio/io_sch.h