]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:32:40 +0000 (09:32 -0700)
commit7c1af9af57eafaad181505ef594d0214d0724647
tree6b14c7a8523870ef97a27968befd5acafa008560
parent1a5392619baf037a0aab6689ece7f4b9368d81be
vfio: Move PCI INTx eventfd setting earlier

commit 9dbdfd23b7638d054f3b0e70c64dfb9f297f2a9f upstream.

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.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vfio/pci/vfio_pci_intrs.c