]> Pileus Git - ~andy/linux/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)
commit9dbdfd23b7638d054f3b0e70c64dfb9f297f2a9f
tree85b24e35aea412ea63bae6b71a679b9d030c06fa
parent34002f54d2bd8e8ac04f0da0847f71a8a06a5d38
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