]> asedeno.scripts.mit.edu Git - linux.git/commit
misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi()
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 11 Oct 2017 08:44:38 +0000 (14:14 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Oct 2017 20:33:46 +0000 (15:33 -0500)
commitb7636e816adcb52bc96b6fb7bc9d141cbfd17ddb
tree1ea4fa1ff02a2df79fd46682f7dc46d3eb16fabb
parent139838fffec40296d7235982a1a9b917ba31530f
misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi()

pci_disable_msi() throws a Kernel BUG if the driver has successfully
requested an IRQ and not released it. Fix it here by freeing IRQs before
invoking pci_disable_msi().

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/misc/pci_endpoint_test.c