summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2023-01-26 12:29:10 +0300
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2023-02-02 20:22:24 +0300
commit3c54a3ff0a2cdcd902482a62fef813f1d46e5eaf (patch)
tree015e341dc23de3a7c542eca5393be66f6c01e9d8 /tools/perf/scripts/python/export-to-postgresql.py
parent1ddc7618294084fff8d673217a9479550990ee84 (diff)
downloadlinux-3c54a3ff0a2cdcd902482a62fef813f1d46e5eaf.tar.xz
bus: mhi: ep: Fix off by one in mhi_ep_process_cmd_ring()
The > comparison should be changed to >= to prevent an out of bounds access into the mhi_cntrl->mhi_chan[] array. The mhi_cntrl->mhi_chan[] array is allocated in mhi_ep_chan_init() and has mhi_cntrl->max_chan elements. Fixes: 6de4941c0215 ("bus: mhi: ep: Check if the channel is supported by the controller") Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Alex Elder <elder@linaro.org> Link: https://lore.kernel.org/r/Y9JH5sudiZWvbODv@kili Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions