On Mon Jul 6 12:25:43 2026 +0100, Sean Young wrote:
> If usb_submit_urb() fails during probe, then the error path is missing a
> call to rc_unregister_device(), which will leak various things like the
> input device.
> 
> Fixes: 42844992664f ("media: rc: streamzap: Error handling in probe")
> Signed-off-by: Sean Young <[email protected]>
> Cc: [email protected]
> Reviewed-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Sean Young

 drivers/media/rc/streamzap.c | 1 +
 1 file changed, 1 insertion(+)

---

diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c
index 307985d74fe8..41195ad82734 100644
--- a/drivers/media/rc/streamzap.c
+++ b/drivers/media/rc/streamzap.c
@@ -365,6 +365,7 @@ static int streamzap_probe(struct usb_interface *intf,
 
        return 0;
 rc_submit_fail:
+       rc_unregister_device(sz->rdev);
        rc_free_device(sz->rdev);
        usb_set_intfdata(intf, NULL);
 rc_dev_fail:
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to