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:Roger Quadros <rogerq@ti.com> Signed-off-by:
Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by:
Greg 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:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment