Commit e011322e authored by Bharat Gooty's avatar Bharat Gooty Committed by Yang Yingliang
Browse files

PCI: iproc: Fix out-of-bound array accesses

stable inclusion
from linux-4.19.164
commit 06773ce45d65c74c0aebdd766fbc3a916546d4ba

--------------------------------

[ Upstream commit a3ff529f ]

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: 06324ede ("PCI: iproc: Improve core register population")
Signed-off-by: default avatarBharat Gooty <bharat.gooty@broadcom.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent 3c351c18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment