summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYunfei Dong <yunfei.dong@mediatek.com>2024-03-14 20:30:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 13:07:40 +0200
commit41671f0c0182b2bae74ca7e3b0f155559e3e2fc5 (patch)
tree26cdad2769c9966948083364ff51fc6f91bf1623 /include/linux
parent0a2dc707aa42214f9c4827bd57e344e29a0841d6 (diff)
media: mediatek: vcodec: adding lock to protect encoder context list
[ Upstream commit afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad ] Add a lock for the ctx_list, to avoid accessing a NULL pointer within the 'vpu_enc_ipi_handler' function when the ctx_list has been deleted due to an unexpected behavior on the SCP IP block. Fixes: 1972e32431ed ("media: mediatek: vcodec: Fix possible invalid memory access for encoder") Signed-off-by: Yunfei Dong <yunfei.dong@mediatek.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions