diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-07-01 13:18:49 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-16 10:48:59 -0400 |
commit | cb28c7ab786b3e77f8435a41929b3ee9bcc51eb1 (patch) | |
tree | 42bad6268d5e1c1508d39c6963b07ab63d386031 /drivers/dma/fsl_raid.c | |
parent | 476c7c809ebeefb83e017be543922dede1c10584 (diff) |
dmaengine: fsl_raid: kill the tasklets upon exit
drivers should ensure that tasklets are killed, so that they can't be
run after driver remove is executed
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Cc: Xuelin Shi <xuelin.shi@freescale.com>
Diffstat (limited to 'drivers/dma/fsl_raid.c')
-rw-r--r-- | drivers/dma/fsl_raid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c index 4d9470f16552..1b71d1fea395 100644 --- a/drivers/dma/fsl_raid.c +++ b/drivers/dma/fsl_raid.c | |||
@@ -856,6 +856,8 @@ static int fsl_re_probe(struct platform_device *ofdev) | |||
856 | 856 | ||
857 | static void fsl_re_remove_chan(struct fsl_re_chan *chan) | 857 | static void fsl_re_remove_chan(struct fsl_re_chan *chan) |
858 | { | 858 | { |
859 | tasklet_kill(&chan->irqtask); | ||
860 | |||
859 | dma_pool_free(chan->re_dev->hw_desc_pool, chan->inb_ring_virt_addr, | 861 | dma_pool_free(chan->re_dev->hw_desc_pool, chan->inb_ring_virt_addr, |
860 | chan->inb_phys_addr); | 862 | chan->inb_phys_addr); |
861 | 863 | ||