dmaengine: fsl-qdma: Handle invalid qdma-queue0 IRQ
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 4 Oct 2019 15:08:26 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:17:01 +0000 (19:17 +0100)
commit37958001e11d592114c3e02e296065c670803ced
treef10a95ff5372ed80e5ae1c2658bdfcb9475aa6eb
parentfee76d84ba258022865d00c1817281fbdc494bf9
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 <krzk@kernel.org>
Reviewed-by: Peng Ma <peng.ma@nxp.com>
Tested-by: Peng Ma <peng.ma@nxp.com>
Link: https://lore.kernel.org/r/20191004150826.6656-1-krzk@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/fsl-qdma.c