vfio: fix disabling INTx
authorNikhil Rao <nikhil.rao@intel.com>
Tue, 28 Mar 2017 23:54:07 +0000 (05:24 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 30 Mar 2017 14:59:49 +0000 (16:59 +0200)
commitbb7927fd2179d7482de58d87352ecc50c69da427
tree215713dee44c5de2084c71900ed1d077a6181f0f
parent468f42cc264580c078b892fe6886810fe996a75f
vfio: fix disabling INTx

The flags member of irq_set should be ORed with VFIO_IRQ_SET_ACTION_MASK
and not VFIO_IRQ_SET_ACTION_UNMASK. The bug was found by code inspection.

Fixes: 5c782b3928b8 ("vfio: interrupts")
Cc: stable@dpdk.org
Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_interrupts.c