mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
PCI: tegra264: Fix kernel crash during outbound map
Kernel crash is observed during outbound mapping since memory is not allocated for ob_addr pointer. Tegra264 support fixed 8 outbound channels, so change ob_addr pointer as a static array to fix the kernel crash. Bug 4705050 Change-Id: Ibf675c1d00abcbd8596f9be9b76ae7ef19d2fd38 Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/3163948 Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Tested-by: Nagarjuna Kristam <nkristam@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
e9881b2cee
commit
f439ffe285
@@ -137,7 +137,7 @@ struct tegra264_pcie_ep {
|
||||
struct pci_epc *epc;
|
||||
struct tegra_bpmp *bpmp;
|
||||
|
||||
phys_addr_t *ob_addr;
|
||||
phys_addr_t ob_addr[NUM_OB_WINDOWS];
|
||||
unsigned long *ob_window_map;
|
||||
|
||||
u32 ctl_id;
|
||||
|
||||
Reference in New Issue
Block a user