linux-stable/drivers/usb/common
Johan Hovold 8bc546bbfe USB: ulpi: fix bus-node lookup
commit 33c309ebc7 upstream.

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>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-10 13:40:44 +01:00
..
common.c usb: common: use of_property_read_bool() 2017-08-28 11:39:31 +02:00
led.c usb: Add LED triggers for USB activity 2014-09-25 17:05:12 +02: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-12-10 13:40:44 +01:00
usb-otg-fsm.c usb: otg-fsm: Prevent build warning "VDBG" redefined 2017-04-11 10:58:23 +03:00