From: Roger Quadros Date: Fri, 29 May 2015 14:01:48 +0000 (+0300) Subject: usb: xhci: Allow usb_add/remove_hcd() to be called repeatedly X-Git-Tag: omap-for-v4.2/fixes-rc1^2~90^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a853759c262fd52ff0f5e89f89c65928077fe4a;p=pandora-kernel.git 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 Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed