usb: musb: gadget: prevent a NULL pointer dereference
commit0607f8622953541e95030ab011258d9f1f381357
authorFelipe Balbi <balbi@ti.com>
Wed, 1 Dec 2010 09:03:54 +0000 (1 11:03 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 1 Dec 2010 09:03:54 +0000 (1 11:03 +0200)
tree3958a9076d3a31a091a250f6ac21331346b2520d
parentfcf173e4511193b1efeccb0f22a8c641b464353b
usb: musb: gadget: prevent a NULL pointer dereference

Case we can't allocate struct musb_request,
prevent a NULL pointer dereference by returning
early.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c