]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-mmio: add error check for platform_get_irq
authorIhor Matushchak <ihor.matushchak@foobox.net>
Tue, 2 Jul 2019 14:48:18 +0000 (17:48 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Jul 2019 20:22:29 +0000 (16:22 -0400)
commit531c6bc99a2e606bc89eed03e5b72b377509365c
tree7e977bbddad567428fc006bb0bb18a011e696792
parent67bb8dfd8b7ccca87b687d064c6fbfdf420857e0
virtio-mmio: add error check for platform_get_irq

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 <ihor.matushchak@foobox.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Ivan T. Ivanov <iivanov.xz@gmail.com>
drivers/virtio/virtio_mmio.c