linux/drivers/s390
Halil Pasic a707bc57cd s390/virtio: handle find on invalid queue gracefully
commit 3438b2c039 upstream.

A queue with a capacity of zero is clearly not a valid virtio queue.
Some emulators report zero queue size if queried with an invalid queue
index. Instead of crashing in this case let us just return -ENOENT. To
make that work properly, let us fix the notifier cleanup logic as well.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-07-09 22:04:13 +01:00
..
block s390/dasd: fix using offset into zero size array error 2019-05-02 21:41:31 +01:00
char s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-05-02 21:41:20 +01:00
cio s390/qdio: reset old sbal_state flags 2018-12-16 22:08:04 +00:00
crypto crypto: prefix module autoloading with "crypto-" 2015-02-04 10:57:48 +00:00
kvm s390/virtio: handle find on invalid queue gracefully 2019-07-09 22:04:13 +01:00
net s390/qeth: conclude all event processing before offlining a card 2019-05-02 21:41:38 +01:00
scsi scsi: zfcp: fix posting too many status read buffers leading to adapter shutdown 2019-04-04 16:13:48 +01:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00