]> git.dujemihanovic.xyz Git - linux.git/commit
dmaengine: at_hdmac: fix module unloading
authorRichard Genoud <richard.genoud@gmail.com>
Tue, 27 Nov 2018 16:06:35 +0000 (17:06 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Nov 2018 14:19:41 +0000 (19:49 +0530)
commit77e75fda94d2ebb86aa9d35fb1860f6395bf95de
tree156e1330cf21567a8951fc23417f7656ded15429
parent98f5f932254b88ce828bc8e4d1642d14e5854caa
dmaengine: at_hdmac: fix module unloading

of_dma_controller_free() was not called on module onloading.
This lead to a soft lockup:
watchdog: BUG: soft lockup - CPU#0 stuck for 23s!
Modules linked in: at_hdmac [last unloaded: at_hdmac]
when of_dma_request_slave_channel() tried to call ofdma->of_dma_xlate().

Cc: stable@vger.kernel.org
Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding")
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c