linux_dsm_epyc7002/drivers/media/platform/qcom/venus
Colin Ian King bc8e2d627a media: venus: fix loop wrap in cleanup of clks
The current pre-decrement is incorrect and should be replaced
with a post-decrement. Consider the case where the very first
clk_prepare_enable fails when i is 0; in this case the error
clean up will decrement the unsigned int which wraps to the
largest unsigned int value causing an array out of bounds read
on core->clks[i].

Detected by CoverityScan, CID#1446590 ("Out-of-bounds read")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-24 09:38:53 -03:00
..
core.c media: venus: fix loop wrap in cleanup of clks 2017-06-24 09:38:53 -03:00
core.h [media] media: venus: update firmware path with linux-firmware place 2017-06-20 08:53:41 -03:00
firmware.c [media] media: venus: update firmware path with linux-firmware place 2017-06-20 08:53:41 -03:00
firmware.h [media] media: venus: update firmware path with linux-firmware place 2017-06-20 08:53:41 -03:00
helpers.c [media] media: venus: helpers: fix variable dereferenced before check 2017-06-20 08:53:40 -03:00
helpers.h
hfi_cmds.c [media] media: venus: hfi_cmds: fix variable dereferenced before check 2017-06-20 08:53:40 -03:00
hfi_cmds.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_helper.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_msgs.c [media] media: venus: hfi_msgs: fix set but not used variables 2017-06-20 08:53:40 -03:00
hfi_msgs.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
hfi_venus_io.h [media] media: venus: hfi: add Venus HFI files 2017-06-20 08:53:40 -03:00
hfi_venus.c [media] media: venus: hfi_venus: fix variable dereferenced before check 2017-06-20 08:53:40 -03:00
hfi_venus.h [media] media: venus: hfi: add Venus HFI files 2017-06-20 08:53:40 -03:00
hfi.c [media] media: venus: hfi: fix mutex unlock 2017-06-20 08:53:40 -03:00
hfi.h [media] media: venus: hfi: add Host Firmware Interface (HFI) 2017-06-20 08:53:40 -03:00
Makefile [media] media: venus: enable building of Venus video driver 2017-06-20 08:53:40 -03:00
vdec_ctrls.c [media] media: venus: vdec: add support for min buffers for capture 2017-06-20 08:53:41 -03:00
vdec.c [media] media: venus: vdec: add support for min buffers for capture 2017-06-20 08:53:41 -03:00
vdec.h [media] media: venus: vdec: add video decoder files 2017-06-20 08:53:39 -03:00
venc_ctrls.c [media] media: venus: venc: add video encoder files 2017-06-20 08:53:39 -03:00
venc.c [media] media: venus: venc: fix compile error in venc_close 2017-06-20 08:53:41 -03:00
venc.h [media] media: venus: venc: add video encoder files 2017-06-20 08:53:39 -03:00