mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02: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
|
|
@ -1790,7 +1790,7 @@ static int tvp5150_probe(struct i2c_client *c,
|
|||
tvp5150_isr, IRQF_TRIGGER_HIGH |
|
||||
IRQF_ONESHOT, "tvp5150", core);
|
||||
if (res)
|
||||
return res;
|
||||
goto err;
|
||||
}
|
||||
|
||||
res = v4l2_async_register_subdev(sd);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user