media: video-mux: Add missing media_entity_cleanup upon async register fail
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 2 May 2023 14:15:43 +0000 (16:15 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 25 May 2023 14:21:22 +0000 (16:21 +0200)
commitad5929547b545f6335f7a65cd5dd978967a02be3
tree985b5516c670ae8219ae976c1335b501397446f3
parentcd78824dd989ad733b650f42e078095ff231a215
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>
drivers/media/platform/video-mux.c