]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Move PCI INTx eventfd setting earlier
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 10 Oct 2012 15:10:32 +0000 (09:10 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 10 Oct 2012 15:10:32 +0000 (09:10 -0600)
commite1c990ad321f1840c61023b23bb487278864573b
tree85b24e35aea412ea63bae6b71a679b9d030c06fa
parente9fa9bd9e6cf842d5e9d252d85cb1cfd227b0872
vfio: Move PCI INTx eventfd setting earlier

We need to be ready to recieve an interrupt as soon as we call
request_irq, so our eventfd context setting needs to be moved
earlier.  Without this, an interrupt from our device or one
sharing the interrupt line can pass a NULL into eventfd_signal
and oops.

Cc: stable@vger.kernel.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_intrs.c