summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorFernando Guzman Lugo <x0095840@ti.com>2010-02-13 01:07:14 (GMT)
committerHiroshi DOYU <Hiroshi.DOYU@nokia.com>2010-08-04 12:50:15 (GMT)
commit0e828e8c2bab6d30649447eea68686413c92d340 (patch)
tree53b7e9eaf27b84beed37042aeb770423427b34ef /arch/arm
parentad6d962735eb48dde1851269bdeaa042fdb39172 (diff)
downloadlinux-0e828e8c2bab6d30649447eea68686413c92d340.tar.xz
Mailbox: flush pending deferred works before freeing blk queue
flush pending deferred works before freeing blk_queue to prevent any attempt of access to blk_queue after it was freed Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/plat-omap/mailbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c
index 252a586..77c23f5 100644
--- a/arch/arm/plat-omap/mailbox.c
+++ b/arch/arm/plat-omap/mailbox.c
@@ -299,6 +299,8 @@ static int omap_mbox_startup(struct omap_mbox *mbox)
static void omap_mbox_fini(struct omap_mbox *mbox)
{
free_irq(mbox->irq, mbox);
+ tasklet_kill(&mbox->txq->tasklet);
+ flush_work(&mbox->rxq->work);
mbox_queue_free(mbox->txq);
mbox_queue_free(mbox->rxq);