From f439ffe285cf59f7b3aa4bddbd0d4e41d1c23551 Mon Sep 17 00:00:00 2001 From: Manikanta Maddireddy Date: Sun, 23 Jun 2024 18:37:35 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/3163948 Reviewed-by: Nagarjuna Kristam Reviewed-by: Bibek Basu GVS: buildbot_gerritrpt Tested-by: Nagarjuna Kristam --- drivers/pci/controller/private-soc/pcie-tegra264-ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/private-soc/pcie-tegra264-ep.c b/drivers/pci/controller/private-soc/pcie-tegra264-ep.c index e72e8865..aadcfdc8 100644 --- a/drivers/pci/controller/private-soc/pcie-tegra264-ep.c +++ b/drivers/pci/controller/private-soc/pcie-tegra264-ep.c @@ -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;