mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
media: dw100: Fix an error handling path in dw100_probe()
After a successful call to media_device_init() it is safer to call
media_device_cleanup().
Add the missing call in the error handling path of the probe, as already
done in the remove function.
[hverkuil: fixed a typo in the commit log]
Fixes: bd090d4d995a ("media: dw100: Add i.MX8MP dw100 dewarper driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
a7985e3cec
commit
8e69714e61
|
|
@ -1623,6 +1623,7 @@ static int dw100_probe(struct platform_device *pdev)
|
|||
error_v4l2:
|
||||
video_unregister_device(vfd);
|
||||
err_m2m:
|
||||
media_device_cleanup(&dw_dev->mdev);
|
||||
v4l2_m2m_release(dw_dev->m2m_dev);
|
||||
err_v4l2:
|
||||
v4l2_device_unregister(&dw_dev->v4l2_dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user