Re: [PATCH v2 4/4] media: mediatek: vcodec: Only free buffer VA that is not NULL

From: AngeloGioacchino Del Regno
Date: Thu Dec 21 2023 - 06:43:34 EST


Il 21/12/23 10:17, Fei Shao ha scritto:
In the MediaTek vcodec driver, while mtk_vcodec_mem_free() is mostly
called only when the buffer to free exists, there are some instances
that didn't do the check and triggered warnings in practice.

We believe those checks were forgotten unintentionally. Add the checks
back to fix the warnings.

Signed-off-by: Fei Shao <fshao@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>