linux/drivers/media/platform/ti
Gaosheng Cui 7acd650a04 media: ti: cal: fix possible memory leak in cal_ctx_create()
The memory of ctx is allocated in cal_ctx_create(), but it will
not be freed when cal_ctx_v4l2_init() fails, so add kfree() when
cal_ctx_v4l2_init() fails to fix it.

Fixes: d68a94e98a ("media: ti-vpe: cal: Split video device initialization and registration")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-01-22 09:24:40 +01:00
..
am437x media: platform: ti: avoid using 'videobuf' or 'video-buf' 2022-08-29 16:25:08 +02:00
cal media: ti: cal: fix possible memory leak in cal_ctx_create() 2023-01-22 09:24:40 +01:00
davinci media: davinci: deprecate dm644x_ccdc, dm355_cddc and dm365_isif 2022-08-29 16:45:34 +02:00
omap media: ti/omap: fix repeated words in comments 2022-08-29 15:32:14 +02:00
omap3isp media: Switch to use dev_err_probe() helper 2022-12-07 17:58:46 +01:00
vpe media: platform: re-structure TI drivers 2022-03-18 05:58:35 +01:00
Kconfig media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00
Makefile media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00