base-files: sysupgrade: correct command help text
[openwrt/staging/mkresin.git] / target / linux / bcm53xx / patches-4.14 / 982-PCI-iproc-Disable-DMA-mapping-support.patch
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
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
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.
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 ---
15
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 *
19 }
20 }
21
22 +if (0) {
23 ret = iproc_pcie_map_dma_ranges(pcie);
24 if (ret && ret != -ENOENT)
25 goto err_power_off_phy;
26 +}
27
28 #ifdef CONFIG_ARM
29 pcie->sysdata.private_data = pcie;