diff options
author | Yunfei Dong <yunfei.dong@mediatek.com> | 2024-03-14 20:30:09 +0800 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-03-26 09:52:59 +0100 |
commit | afaaf3a0f647a24a7bf6a2145d8ade37baaf75ad (patch) | |
tree | 1239a7a710d37984df598d659deb8bb73ca1bab5 /lib/rbtree.c | |
parent | 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382 (diff) |
media: mediatek: vcodec: adding lock to protect encoder context list
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>
Diffstat (limited to 'lib/rbtree.c')
0 files changed, 0 insertions, 0 deletions