[PATCH v2] media: imx: fix a potential memory leak in imx_media_csc_scaler_device_init()
Dan Carpenter
dan.carpenter at linaro.org
Thu Feb 27 01:59:51 PST 2025
On Thu, Feb 27, 2025 at 03:44:51PM +0800, Haoxiang Li wrote:
> Add video_device_release() in label 'err_m2m' to release the memory
> allocated by video_device_alloc() and prevent potential memory leaks.
> Remove the reduntant code in label 'err_m2m'.
>
> Fixes: a8ef0488cc59 ("media: imx: add csc/scaler mem2mem device")
> Cc: stable at vger.kernel.org
> Signed-off-by: Haoxiang Li <haoxiang_li2024 at 163.com>
> ---
> Changes in v2:
> - Remove the reduntant code. Thanks, Dan!
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>
regards,
dan carpenter
More information about the linux-arm-kernel
mailing list