Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93718650 authored by Roger Quadros's avatar Roger Quadros Committed by Mayank Rana
Browse files

usb: xhci: Allow usb_add/remove_hcd() to be called repeatedly



Don't set xhci->shared_hcd to NULL in xhci_stop() as we have
still not de-allocated it. It was resulting in a NULL pointer
de-reference if usb_add/remove_hcd() is called repeatedly.

We want repeated add/remove to work for the OTG use case.

Signed-off-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 8a853759c262fd52ff0f5e89f89c65928077fe4a
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git


Change-Id: I7a31bd810a565f5df6e885e541ae86d3b1573c06
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 53d2912c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment