aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorKunihiko Hayashi <[email protected]>2020-04-22 16:24:47 +0900
committerLorenzo Pieralisi <[email protected]>2020-05-05 12:23:07 +0100
commit0e86d981f9b7252e9716c5137cd8e4d9ad8ef32f (patch)
treed56c72b3439bf828306e86bfa3c4db249626ffc9 /drivers/pci/controller/dwc
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
PCI: endpoint: functions/pci-epf-test: Fix DMA channel release
When unbinding pci_epf_test, pci_epf_test_clean_dma_chan() is called in pci_epf_test_unbind() even though epf_test->dma_supported is false. As a result, dma_release_channel() will trigger a NULL pointer dereference because dma_chan is not set. Avoid calling dma_release_channel() if epf_test->dma_supported is false. Link: https://lore.kernel.org/r/[email protected] Fixes: 5ebf3fc59bd2 ("PCI: endpoint: functions/pci-epf-test: Add DMA support to transfer data") Signed-off-by: Kunihiko Hayashi <[email protected]> [[email protected]: commit log] Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions