]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/dma/dma-jz4780: Fix race condition between probe and irq handler
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Fri, 21 Aug 2020 03:44:23 +0000 (09:14 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Aug 2020 11:15:17 +0000 (16:45 +0530)
commit9c0cdfbab734167934b1f8a67fc59455ce8c2132
tree3fde22c2dded4988d680350eb3fe3121b886524c
parent37774c03c192a057209569b739f0871c3a59674d
drivers/dma/dma-jz4780: Fix race condition between probe and irq handler

In probe, IRQ is requested before zchan->id is initialized which can be
read in the irq handler. Hence, shift request irq after other initializations
complete.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200821034423.12713-1-madhuparnabhowmik10@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-jz4780.c