|
@@ -1977,8 +1977,10 @@ static int __init r8a66597_probe(struct platform_device *pdev)
|
|
|
|
|
|
r8a66597->ep0_req = r8a66597_alloc_request(&r8a66597->ep[0].ep,
|
|
r8a66597->ep0_req = r8a66597_alloc_request(&r8a66597->ep[0].ep,
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
- if (r8a66597->ep0_req == NULL)
|
|
|
|
|
|
+ if (r8a66597->ep0_req == NULL) {
|
|
|
|
+ ret = -ENOMEM;
|
|
goto clean_up3;
|
|
goto clean_up3;
|
|
|
|
+ }
|
|
r8a66597->ep0_req->complete = nop_completion;
|
|
r8a66597->ep0_req->complete = nop_completion;
|
|
|
|
|
|
ret = usb_add_gadget_udc(&pdev->dev, &r8a66597->gadget);
|
|
ret = usb_add_gadget_udc(&pdev->dev, &r8a66597->gadget);
|