Skip to content
Commit 7edfe3df authored by Alan Mikhak's avatar Alan Mikhak Committed by Vinod Koul
Browse files

dmaengine: dw-edma: Check MSI descriptor before copying



Modify dw_edma_irq_request() to check if a struct msi_desc entry exists
before copying the contents of its struct msi_msg pointer.

Without this sanity check, __get_cached_msi_msg() crashes when invoked by
dw_edma_irq_request() running on a Linux-based PCIe endpoint device. MSI
interrupt are not received by PCIe endpoint devices. If irq_get_msi_desc()
returns null, then there is no cached struct msi_msg to be copied.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarAlan Mikhak <alan.mikhak@sifive.com>
Acked-by: default avatarGustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/1587607101-31914-1-git-send-email-alan.mikhak@sifive.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent db474931
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment