summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaeed Bishara <saeed@marvell.com>2010-12-21 16:53:39 +0200
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-04-17 16:16:14 -0400
commit2ed78fb1ecfda3f4fa0fd858bde5384738ba8f6e (patch)
tree6e84d0e88447a0e93013857e42248338dfc4f9e3
parent7eba652201dd791aa124afb1cabba6d4cc780072 (diff)
mv_xor: fix race in tasklet function
commit 8333f65ef094e47020cd01452b4637e7daf5a77f upstream. use mv_xor_slot_cleanup() instead of __mv_xor_slot_cleanup() as the former function aquires the spin lock that needed to protect the drivers data. Signed-off-by: Saeed Bishara <saeed@marvell.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--drivers/dma/mv_xor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index ba28b296f0bf..35d0d8c40673 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -449,7 +449,7 @@ mv_xor_slot_cleanup(struct mv_xor_chan *mv_chan)
static void mv_xor_tasklet(unsigned long data)
{
struct mv_xor_chan *chan = (struct mv_xor_chan *) data;
- __mv_xor_slot_cleanup(chan);
+ mv_xor_slot_cleanup(chan);
}
static struct mv_xor_desc_slot *