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)
commit74a599f09bec7419b2490039f0fb33bc8581ef7c
tree79139da3ddbac8589a09ac124440d2dfeb6f1f31
parent9f9499ae8e6415cefc4fe0a96ad0e27864353c89
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