Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
if (!gamepad || !input) {
dev_err(pcu->dev,
"Not enough memory for gamepad device\n");
if (!gamepad || !input) {
dev_err(pcu->dev,
"Not enough memory for gamepad device\n");
+ error = -ENOMEM;
+ goto err_free_mem;
}
gamepad->input = input;
}
gamepad->input = input;
{
struct usb_interface *intf = to_usb_interface(dev);
struct ims_pcu *pcu = usb_get_intfdata(intf);
{
struct usb_interface *intf = to_usb_interface(dev);
struct ims_pcu *pcu = usb_get_intfdata(intf);
- const struct firmware *fw;
+ const struct firmware *fw = NULL;