media: rkisp1: Fix memory leaks in rkisp1_isp_unregister()
Add missing call to v4l2_subdev_cleanup() to fix memory leak. Link: https://lore.kernel.org/r/20231122-rkisp-fixes-v2-2-78bfb63cdcf8@ideasonboard.com Fixes: 2cce0a369dbd ("media: rkisp1: isp: Use V4L2 subdev active state") Reviewed-by: Tommaso Merciai <tomm.merciai@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
452f604a46
commit
688f3af3c3
@ -938,6 +938,7 @@ void rkisp1_isp_unregister(struct rkisp1_device *rkisp1)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
v4l2_device_unregister_subdev(&isp->sd);
|
v4l2_device_unregister_subdev(&isp->sd);
|
||||||
|
v4l2_subdev_cleanup(&isp->sd);
|
||||||
media_entity_cleanup(&isp->sd.entity);
|
media_entity_cleanup(&isp->sd.entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user