commit | eee3f15d5f1f4f0c283dd4db67dc1b874a2852d1 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Tue Feb 25 10:58:43 2014 -0600 |
committer | Felipe Balbi <balbi@ti.com> | Wed Mar 05 09:44:48 2014 -0600 |
tree | 4838a95542403643b7848dbafee18703118cd77e | |
parent | 40f099e32c2a06bad7d75683421e30fcc74924cd [diff] |
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>