]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: Check for XHCI_PLAT in xhci_cleanup_msix()
authorJack Pham <jackp@codeaurora.org>
Fri, 15 Nov 2013 22:53:14 +0000 (14:53 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 19 Dec 2013 21:23:56 +0000 (13:23 -0800)
commit425edd28d56d52fcbaeff2709ee76b0ba0677f9c
treeda655a4b1999971ae717f6ce0550786bbee9b0ae
parent0bd78486f0d59b4dcb43a82d481311cfcc34b9dd
usb: xhci: Check for XHCI_PLAT in xhci_cleanup_msix()

If CONFIG_PCI is enabled, make sure xhci_cleanup_msix()
doesn't try to free a bogus PCI IRQ or dereference an invalid
pci_dev when the xHCI device is actually a platform_device.

This patch should be backported to kernels as old as 3.9, that
contain the commit 32579010e149d3637c7bc70ebae9c930e1c32e61
"xhci-plat: Don't enable legacy PCI interrupts."

Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci.c