]> git.baikalelectronics.ru Git - kernel.git/commit
virtio/s390: handle failures of READ_VQ_CONF ccw
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Thu, 10 Sep 2015 14:35:08 +0000 (16:35 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 16 Sep 2015 09:48:08 +0000 (12:48 +0300)
commit571ecb693c92ca78c2c30bc1409c7f88cddd25ce
tree9450fac88940838127f0170f2bd3d22e323e0bc9
parent88e391e26b701cd877b15dbec5571e665a6bf99f
virtio/s390: handle failures of READ_VQ_CONF ccw

In virtio_ccw_read_vq_conf() the return value of ccw_io_helper()
was not checked.
If the configuration could not be read properly, we'd wrongly assume a
queue size of 0.

Let's propagate any I/O error to virtio_ccw_setup_vq() so it may
properly fail.

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