lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1370605240-19768-1-git-send-email-zhouqiao@marvell.com>
Date:	Fri, 7 Jun 2013 19:40:40 +0800
From:	Qiao Zhou <zhouqiao@...vell.com>
To:	<vinod.koul@...el.com>, <djbw@...com>, <zhangfei.gao@...il.com>,
	<linux-kernel@...r.kernel.org>
CC:	Qiao Zhou <zhouqiao@...vell.com>
Subject: [PATCH] dma: mmp_tdma: kill tasklet when free dma channel

kill tasklet task when free dam channel, otherwise the task may
run after related resource is released, then unknown things may
happen.

Signed-off-by: Qiao Zhou <zhouqiao@...vell.com>
---
 drivers/dma/mmp_tdma.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index 43d5a6c..2622b2a 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -333,6 +333,9 @@ static void mmp_tdma_free_chan_resources(struct dma_chan *chan)
 
 	if (tdmac->irq)
 		devm_free_irq(tdmac->dev, tdmac->irq, tdmac);
+
+	tasklet_kill(&tdmac->tasklet);
+
 	mmp_tdma_free_descriptor(tdmac);
 	return;
 }
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ