Commit 33854e11 authored by Felipe Balbi's avatar Felipe Balbi Committed by Dan Murphy
Browse files

usb: musb: avoid NULL pointer dereference



[ Upstream commit eee3f15d ]

instead of relying on the otg pointer, which
can be NULL in certain cases, we can use the
gadget and host pointers we already hold inside
struct musb.

Cc: <stable@vger.kernel.org>
Tested-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarDan Murphy <DMurphy@ti.com>
parent 2a4280eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment