]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: iproc: Fix out-of-bound array accesses
authorBharat Gooty <bharat.gooty@broadcom.com>
Thu, 1 Oct 2020 06:00:52 +0000 (11:30 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 30 Nov 2020 18:24:36 +0000 (18:24 +0000)
commitc1aba408e1e9f56862e8a8b100d87fe21c02a142
treed894a5f50ee2eba30d1b8df3cace34abecfcc5a5
parentc264010cc5c3df68366b65702bff545bebd1b7d0
PCI: iproc: Fix out-of-bound array accesses

Declare the full size array for all revisions of PAX register sets
to avoid potentially out of bound access of the register array
when they are being initialized in iproc_pcie_rev_init().

Link: https://lore.kernel.org/r/20201001060054.6616-2-srinath.mannam@broadcom.com
Fixes: 450fbcf39bc4a ("PCI: iproc: Improve core register population")
Signed-off-by: Bharat Gooty <bharat.gooty@broadcom.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pcie-iproc.c