mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
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>
This commit is contained in:
parent
330abed79a
commit
81fd5fd46e
1 changed files with 1 additions and 1 deletions
|
@ -1790,7 +1790,7 @@ static int tvp5150_probe(struct i2c_client *c,
|
||||||
tvp5150_isr, IRQF_TRIGGER_HIGH |
|
tvp5150_isr, IRQF_TRIGGER_HIGH |
|
||||||
IRQF_ONESHOT, "tvp5150", core);
|
IRQF_ONESHOT, "tvp5150", core);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = v4l2_async_register_subdev(sd);
|
res = v4l2_async_register_subdev(sd);
|
||||||
|
|
Loading…
Reference in a new issue