diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2018-11-09 17:21:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-11 18:03:09 +0100 |
commit | df4bf4dceb3a9fd91dc85b3d7f6ca1a0afdf8a75 (patch) | |
tree | 0c3770a64e0fd66734038333ee227a1282922122 /sound | |
parent | ec6ddb1aa82fb7fae89ce485ee874eae26de56a8 (diff) |
xhci: handle port status events for removed USB3 hcd
commit 1245374e9b8340fc255fd51b2015173a83050d03 upstream.
At xhci removal the USB3 hcd (shared_hcd) is removed before the primary
USB2 hcd. Interrupts for port status changes may still occur for USB3
ports after the shared_hcd is freed, causing NULL pointer dereference.
Check if xhci->shared_hcd is still valid before handing USB3 port events
Cc: <stable@vger.kernel.org>
Reported-by: Peter Chen <peter.chen@nxp.com>
Tested-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: Macpaul Lin <macpaul.lin@mediatek.com>
[redone for 4.14.y based on Mathias's comments]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions