]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: musb: avoid NULL pointer dereference
authorFelipe Balbi <balbi@ti.com>
Tue, 25 Feb 2014 16:58:43 +0000 (10:58 -0600)
committerFelipe Balbi <balbi@ti.com>
Wed, 5 Mar 2014 15:44:48 +0000 (09:44 -0600)
commiteee3f15d5f1f4f0c283dd4db67dc1b874a2852d1
tree4838a95542403643b7848dbafee18703118cd77e
parent40f099e32c2a06bad7d75683421e30fcc74924cd
usb: musb: avoid NULL pointer dereference

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: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c