]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/s390: handle error values in irb
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 3 Dec 2015 16:24:00 +0000 (17:24 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 17 Dec 2015 08:37:33 +0000 (10:37 +0200)
commitd55de65259a1f6ab5778c23407b5b022eb3bbc2b
tree79139da3ddbac8589a09ac124440d2dfeb6f1f31
parent8a4e66d6876ca2806a1603b37b11e6302e642c93
virtio/s390: handle error values in irb

The common I/O layer may pass an error value as the irb in the device's
interrupt handler (for classic channel I/O). This won't happen in
current virtio-ccw implementations, but it's better to be safe than
sorry.

Let's just return the error conveyed by the irb and clear any possible
pending I/O indications.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Guenther Hutzl <hutzl@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/s390/virtio/virtio_ccw.c