[1/1] media: video-mux: Add missing media_entity_cleanup upon async register fail
Commit Message
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>
---
drivers/media/platform/video-mux.c | 1 +
1 file changed, 1 insertion(+)
@@ -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);
}