Skip to content

Commit 81fd5fd

Browse files
Marco Felschmchehab
authored andcommitted
media: tvp5150: fix irq_request error path during probe
Commit 37c65802e76a ("media: tvp5150: Add sync lock interrupt handling") introduced the interrupt handling. But we have to free the v4l2_ctrl_handler before we can return the error code. Fixes: 37c65802e76a ("media: tvp5150: Add sync lock interrupt handling") Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent 330abed commit 81fd5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/tvp5150.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ static int tvp5150_probe(struct i2c_client *c,
17901790
tvp5150_isr, IRQF_TRIGGER_HIGH |
17911791
IRQF_ONESHOT, "tvp5150", core);
17921792
if (res)
1793-
return res;
1793+
goto err;
17941794
}
17951795

17961796
res = v4l2_async_register_subdev(sd);

0 commit comments

Comments
 (0)