]> git.ipfire.org Git - thirdparty/linux.git/commit
media: mediatek: vcodec: Fix encoder access NULL pointer
authorIrui Wang <irui.wang@mediatek.com>
Tue, 26 Sep 2023 10:19:08 +0000 (18:19 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 5 Oct 2023 09:34:29 +0000 (11:34 +0200)
commit1146bec0ca34375f963f79f5c4e6b49ed5386aaa
tree82243827975bac71b301801527b67b0b701c7d9a
parent6bd01c4299d4428738ab18f59334ce8b8207a531
media: mediatek: vcodec: Fix encoder access NULL pointer

Need to set the private data with encoder device, or will access
NULL pointer in encoder handler.

Fixes: 1972e32431ed ("media: mediatek: vcodec: Fix possible invalid memory access for encoder")
Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/vcodec/encoder/venc_vpu_if.c