In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: Only free buffer VA that is not NULL 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.
https://git.kernel.org/stable/c/eb005c801ec70ff4307727bd3bd6e8280169ef32
https://git.kernel.org/stable/c/5c217253c76c94f76d1df31d0bbdcb88dc07be91
https://git.kernel.org/stable/c/303d01082edaf817ee2df53a40dca9da637a2c04