Commit 52cdb013 authored by Peiwei Hu's avatar Peiwei Hu Committed by Mauro Carvalho Chehab

media: ir_toy: free before error exiting

Fix leak in error path.
Signed-off-by: default avatarPeiwei Hu <jlu.hpw@foxmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent bb8c9853
......@@ -458,7 +458,7 @@ static int irtoy_probe(struct usb_interface *intf,
err = usb_submit_urb(irtoy->urb_in, GFP_KERNEL);
if (err != 0) {
dev_err(irtoy->dev, "fail to submit in urb: %d\n", err);
return err;
goto free_rcdev;
}
err = irtoy_setup(irtoy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment