Skip to content

Commit

Permalink
mv_xor: fix race in tasklet function
Browse files Browse the repository at this point in the history
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.

Cc: <stable@kernel.org>
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Saeed Bishara authored and djbw committed Jan 3, 2011
1 parent 59a609d commit 8333f65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/mv_xor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 8333f65

Please sign in to comment.