public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
* Regression: NULL pointer dereference caused by iproc_pcie_map_dma_ranges
@ 2017-12-29 22:34 Rafał Miłecki
  2018-01-02 18:44 ` Ray Jui
  0 siblings, 1 reply; 5+ messages in thread
From: Rafał Miłecki @ 2017-12-29 22:34 UTC (permalink / raw)
  To: Ray Jui
  Cc: Oza Oza, Bjorn Helgaas, Scott Branden, Linux PCI,
	bcm-kernel-feedback-list, Jon Mason, Hauke Mehrtens

Hi, I just updated from kernel 4.9 to 4.14 and found a NULL pointer
dereference caused by the iproc driver.

1) For bcma case pcie->dev->of_node can be NULL
2) iproc_pcie_map_dma_ranges calls pci_dma_range_parser_init
3) pci_dma_range_parser_init calls of_n_addr_cells(node) (node is NULL)

This is caused by a commit dd9d4e7498de3 ("PCI: iproc: Add inbound DMA
mapping support").

I believe that new DMA mapping code should be optional.

Would you find a moment to fix that, please?

--=20
Rafa=C5=82

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-09 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-29 22:34 Regression: NULL pointer dereference caused by iproc_pcie_map_dma_ranges Rafał Miłecki
2018-01-02 18:44 ` Ray Jui
2018-01-02 22:00   ` Rafał Miłecki
2018-01-09 15:54     ` Lorenzo Pieralisi
2018-01-09 20:23       ` Ray Jui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox