Hey Hans & Mauro, here is an older set from december 2023 that does a couple of improvements on freeing buffers in the Vcodec driver. Please pull. The following changes since commit faa4364bef2ec0060de381ff028d1d836600a381: media: stk1160: fix bounds checking in stk1160_copy_video() (2024-04-24 13:49:56 +0200) are available in the Git repository at: https://gitlab.collabora.com/sebastianfricke/linux.git tags/for-6.10-vcodec-mem-free for you to fetch changes up to c8c81cce52b50328840c2bb240bfc8fc811a8006: media: mediatek: vcodec: Only free buffer VA that is not NULL (2024-04-26 10:48:27 +0200) ---------------------------------------------------------------- A couple of improvements to mem free for the VCodec ---------------------------------------------------------------- Fei Shao (4): media: mediatek: vcodec: Replace dev_name in error string media: mediatek: vcodec: Drop unnecessary variable media: mediatek: vcodec: Update mtk_vcodec_mem_free() error messages media: mediatek: vcodec: Only free buffer VA that is not NULL .../mediatek/vcodec/common/mtk_vcodec_util.c | 23 +++++++++++----------- .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 22 ++++++++++++++------- .../mediatek/vcodec/encoder/venc/venc_h264_if.c | 5 +++-- 3 files changed, 29 insertions(+), 21 deletions(-)