linux/drivers/usb/common
Johan Hovold 33c309ebc7 USB: ulpi: fix bus-node lookup
Fix bus-node lookup during registration, which ended up searching the whole
device tree depth-first starting at the parent (or grand parent) rather
than just matching on its children.

To make things worse, the parent (or grand-parent) node could end being
prematurely freed as well.

Fixes: ef6a7bcfb0 ("usb: ulpi: Support device discovery via DT")
Reported-by: Peter Robinson <pbrobinson@gmail.com>
Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: stable <stable@vger.kernel.org>     # 4.10
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 15:17:48 +01:00
..
common.c USB: common: Remove redundant license text 2017-11-04 11:55:39 +01:00
led.c USB: common: Remove redundant license text 2017-11-04 11:55:39 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ulpi.c USB: ulpi: fix bus-node lookup 2017-11-28 15:17:48 +01:00
usb-otg-fsm.c USB: common: Remove redundant license text 2017-11-04 11:55:39 +01:00