Files
linux/drivers/usb/phy/phy-am335x-control.c
David Dueck de4b9c41c2 usb: phy: am335x-control: check return value of bus_find_device
[ Upstream commit d0f347d628 ]

This fixes a potential null pointer dereference.

Cc: <stable@vger.kernel.org> # v3.16+
Fixes: d433201391 ("driver core: dev_get_drvdata: Don't check for NULL dev")
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: David Dueck <davidcdueck@googlemail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-16 20:11:39 -04:00

4.2 KiB