[PATCH] virtio-mmio: add error check for platform_get_irq

2019-07-24 Thread Ihor Matushchak
in vm_find_vqs() irq has a wrong type so, in case of no IRQ resource defined, wrong parameter will be passed to request_irq() Signed-off-by: Ihor Matushchak --- drivers/virtio/virtio_mmio.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_mmio.c b

[PATCH v2] virtio-mmio: add error check for platform_get_irq

2019-07-24 Thread Ihor Matushchak
in vm_find_vqs() irq has a wrong type so, in case of no IRQ resource defined, wrong parameter will be passed to request_irq() Signed-off-by: Ihor Matushchak --- Changes in v2: Don't overwrite error code value. drivers/virtio/virtio_mmio.c | 7 ++- 1 file changed, 6 insertions(+), 1