summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/video-mux.c
diff options
context:
space:
mode:
authorVikash Garodia <quic_vgarodia@quicinc.com>2023-08-10 04:25:01 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-23 12:24:52 +0200
commit5e538fce33589da6d7cb2de1445b84d3a8a692f7 (patch)
tree9711874d5bb3c921f44d3f041d03d23d240641cd /drivers/media/platform/video-mux.c
parentmedia: platform: cadence: select MIPI_DPHY dependency (diff)
downloadlinux-5e538fce33589da6d7cb2de1445b84d3a8a692f7.tar.xz
linux-5e538fce33589da6d7cb2de1445b84d3a8a692f7.zip
media: venus: hfi: add checks to perform sanity on queue pointers
Read and write pointers are used to track the packet index in the memory shared between video driver and firmware. There is a possibility of OOB access if the read or write pointer goes beyond the queue memory size. Add checks for the read and write pointer to avoid OOB access. Cc: stable@vger.kernel.org Fixes: d96d3f30c0f2 ("[media] media: venus: hfi: add Venus HFI files") Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/video-mux.c')
0 files changed, 0 insertions, 0 deletions