mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
media: ir_toy: free before error exiting
Fix leak in error path. Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
bb8c98537a
commit
52cdb01303
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user