linux-stable/drivers/s390
Halil Pasic ffcad0a8f4 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.

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 13:19:46 +01:00
..
block s390/dasd: fix using offset into zero size array error 2019-03-23 13:19:41 +01:00
char s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-01-31 08:12:34 +01:00
cio s390/qdio: reset old sbal_state flags 2018-09-05 09:20:10 +02:00
crypto s390/zcrypt: Introduce CEX6 toleration 2017-03-22 12:43:38 +01:00
net s390/qeth: fix use-after-free in error path 2019-03-13 14:05:01 -07:00
scsi scsi: zfcp: fix posting too many status read buffers leading to adapter shutdown 2019-01-13 10:03:50 +01:00
virtio s390/virtio: handle find on invalid queue gracefully 2019-03-23 13:19:46 +01:00
Makefile virtio/s390: rename drivers/s390/kvm -> drivers/s390/virtio 2015-07-07 14:27:06 +03:00