[PATCH] media: exynos4-is: Free control handler if ISP subdev init fails

Krzysztof Kozlowski krzk at kernel.org
Tue Nov 3 23:21:08 PST 2026


On 03/11/2026 10:46, Wentao Liang wrote:
> fimc_isp_subdev_create() initializes isp->ctrls.handler and creates a
> number of standard controls. If any of them cannot be created,
> handler->error is set and the function returns after cleaning up the
> media entity only. The control handler still owns the memory allocated
> for its buckets and for the controls created before the failure, and
> neither fimc_isp_subdev_destroy() nor the caller's cleanup runs on this
> error path, so that memory is leaked.
> 
> Free the control handler before returning the error.
> 
> Fixes: 9a761e436843 ("[media] exynos4-is: Add Exynos4x12 FIMC-IS driver")
> Cc: stable at vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab at iscas.ac.cn>

This is another posting of bot ignoring feedback and probably
introducing vilnerabilities hidden in big spam posting.

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list