media: video-mux: Add missing media_entity_cleanup upon async register fail
Although media_entity_pads_init has been called, a call to media_entity_cleanup in the cleanup code was missing. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
cd78824dd9
commit
ad5929547b
|
@ -474,6 +474,7 @@ static int video_mux_probe(struct platform_device *pdev)
|
|||
|
||||
ret = video_mux_async_register(vmux, num_pads - 1);
|
||||
if (ret) {
|
||||
media_entity_cleanup(&vmux->subdev.entity);
|
||||
v4l2_async_nf_unregister(&vmux->notifier);
|
||||
v4l2_async_nf_cleanup(&vmux->notifier);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue