aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-qcom-ep.c
diff options
context:
space:
mode:
authorSumit Gupta <[email protected]>2023-05-11 17:32:09 +0000
committerThierry Reding <[email protected]>2023-05-16 10:11:36 +0000
commit205b3d02d57ce6dce96f6d2b9c230f56a9bf9817 (patch)
treefefe9231cedce5fb78851aa31a54987bd057670c /drivers/pci/controller/dwc/pcie-qcom-ep.c
parentMerge branch 'for-6.5/memory' into for-6.5/pci (diff)
downloadkernel-205b3d02d57ce6dce96f6d2b9c230f56a9bf9817.tar.gz
kernel-205b3d02d57ce6dce96f6d2b9c230f56a9bf9817.zip
PCI: tegra194: Fix possible array out of bounds access
Add check to fix the possible array out of bounds violation by making speed equal to GEN1_CORE_CLK_FREQ when its value is more than the size of "pcie_gen_freq" array. This array has size of four but possible speed (CLS) values are from "0 to 0xF". So, "speed - 1" values are "-1 to 0xE". Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Sumit Gupta <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Acked-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-ep.c')
0 files changed, 0 insertions, 0 deletions