mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
dmaengine: fsl-qdma: Handle invalid qdma-queue0 IRQ
[ Upstream commit 41814c4eadf8a791b6d07114f96e7e120e59555c ] platform_get_irq_byname() might return -errno which later would be cast to an unsigned int and used in IRQ handling code leading to usage of wrong ID and errors about wrong irq_base. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Peng Ma <[email protected]> Tested-by: Peng Ma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
fee76d84ba
commit
37958001e1
1 changed files with 3 additions and 0 deletions
|
|
@ -1155,6 +1155,9 @@ static int fsl_qdma_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
|
||||
fsl_qdma->irq_base = platform_get_irq_byname(pdev, "qdma-queue0");
|
||||
if (fsl_qdma->irq_base < 0)
|
||||
return fsl_qdma->irq_base;
|
||||
|
||||
fsl_qdma->feature = of_property_read_bool(np, "big-endian");
|
||||
INIT_LIST_HEAD(&fsl_qdma->dma_dev.channels);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue