]> git.baikalelectronics.ru Git - kernel.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)
commitda5228a01916c581de1b8bcf85367650a43fe151
tree1ea4fa1ff02a2df79fd46682f7dc46d3eb16fabb
parent1323606d770ffbc0965a2434334860f465e7fafe
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