summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2017-01-03 18:28:43 +0200
committerSasha Levin <alexander.levin@verizon.com>2017-03-02 21:51:41 -0500
commit4b6ac3407b1e6da7c285da3718b4e0fcaef8eda0 (patch)
tree69218ebaeda9dc75e73a8069d82ac6c7cfae2d52 /drivers/usb/host/xhci-ring.c
parent3e88ba68952a30721133e517c8b277bbde2651d7 (diff)
xhci: free xhci virtual devices with leaf nodes first
[ Upstream commit ee8665e28e8d90ce69d4abe5a469c14a8707ae0e ] the tt_info provided by a HS hub might be in use to by a child device Make sure we free the devices in the correct order. This is needed in special cases such as when xhci controller is reset when resuming from hibernate, and all virt_devices are freed. Also free the virt_devices starting from max slot_id as children more commonly have higher slot_id than parent. CC: <stable@vger.kernel.org> Reported-by: Guenter Roeck <groeck@chromium.org> Tested-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
0 files changed, 0 insertions, 0 deletions