android_kernel_oneplus_msm8998/drivers/s390
Halil Pasic 62a8690649 s390/virtio: handle find on invalid queue gracefully
commit 3438b2c039b4bf26881786a1f3450f016d66ad11 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.

Cc: stable@vger.kernel.org
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 08:44:35 +01:00
..
block s390/dasd: fix using offset into zero size array error 2019-03-23 08:44:32 +01:00
char s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-02-06 19:43:03 +01:00
cio s390/qdio: reset old sbal_state flags 2018-09-05 09:18:40 +02:00
crypto s390/zcrypt: Introduce CEX6 toleration 2017-03-30 09:35:20 +02:00
net s390/qeth: fix use-after-free in error path 2019-03-23 08:44:27 +01:00
scsi scsi: zfcp: fix posting too many status read buffers leading to adapter shutdown 2019-01-13 10:05:32 +01:00
virtio s390/virtio: handle find on invalid queue gracefully 2019-03-23 08:44:35 +01:00
Makefile virtio/s390: rename drivers/s390/kvm -> drivers/s390/virtio 2015-07-07 14:27:06 +03:00