1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Fri, 29 Dec 2017 22:39:45 +0100
3 Subject: [PATCH] PCI: iproc: Disable DMA mapping support
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 This has been added in commit dd9d4e7498de3 ("PCI: iproc: Add inbound
9 DMA mapping support") which causes a crash for bcma case. Function
10 pci_dma_range_parser_init calls of_n_addr_cells with a NULL argument
11 which causes a NULL pointer dereference.
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 --- a/drivers/pci/host/pcie-iproc.c
17 +++ b/drivers/pci/host/pcie-iproc.c
18 @@ -1396,9 +1396,11 @@ int iproc_pcie_setup(struct iproc_pcie *
23 ret = iproc_pcie_map_dma_ranges(pcie);
24 if (ret && ret != -ENOENT)
25 goto err_power_off_phy;
29 pcie->sysdata.private_data = pcie;