git » linux-kernel » commit 7a5c106

sh: prevent the DMA driver from unloading, while in use

author Guennadi Liakhovetski
2010-05-21 15:28:51 UTC
committer Paul Mundt
2010-05-22 08:06:34 UTC
parent 85b8e3ffc47b2a1913be3079e9f1c1f66a6240b2

sh: prevent the DMA driver from unloading, while in use

This prevents the driver from unloading, while it is in use. Unloading of the
driver, while its DMA channels are held, leads to a kernel Oops.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

drivers/dma/shdma.c +1 -0

diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index a1727522343..427d514796d 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -1188,6 +1188,7 @@ static struct platform_driver sh_dmae_driver = {
 	.remove		= __exit_p(sh_dmae_remove),
 	.shutdown	= sh_dmae_shutdown,
 	.driver = {
+		.owner	= THIS_MODULE,
 		.name	= "sh-dma-engine",
 	},
 };