mirror of https://gitee.com/openkylin/linux.git
[media] tlg2300: fix leak at failure path in poseidon_probe()
Error handling code in poseidon_probe() misses usb_put_intf() and usb_put_dev(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
eeff336ccf
commit
e7d40c3721
|
@ -476,6 +476,8 @@ static int poseidon_probe(struct usb_interface *interface,
|
|||
err_video:
|
||||
v4l2_device_unregister(&pd->v4l2_dev);
|
||||
err_v4l2:
|
||||
usb_put_intf(pd->interface);
|
||||
usb_put_dev(pd->udev);
|
||||
kfree(pd);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue