commit | 8a853759c262fd52ff0f5e89f89c65928077fe4a | [log] [tgz] |
---|---|---|
author | Roger Quadros <rogerq@ti.com> | Fri May 29 17:01:48 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun May 31 15:45:31 2015 +0900 |
tree | 33dd49d51540592ea9921b98760e7f833c9ae770 | |
parent | 4ac53087d6d48e46e1cf4d0ca9ed9accdf9c928a [diff] |
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>