]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-pci: Add missing break to enable VFIO_PCI_ERR_IRQ_INDEX
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 12 Mar 2015 03:43:12 +0000 (14:43 +1100)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 12 Mar 2015 15:51:38 +0000 (09:51 -0600)
commit9814136e9b42f181053e777df644ac93434e0abe
treeb7011efa16c38666d9c87f8cd8b7189cc2659be0
parent84539b0b6e1554aff26bf225b12781fa1c0a6a27
vfio-pci: Add missing break to enable VFIO_PCI_ERR_IRQ_INDEX

This adds a missing break statement to VFIO_DEVICE_SET_IRQS handler
without which vfio_pci_set_err_trigger() would never be called.

While we are here, add another "break" to VFIO_PCI_REQ_IRQ_INDEX case
so if we add more indexes later, we won't miss it.

Fixes: f39a887e7d5e ("vfio-pci: Add device request interface")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_intrs.c