projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fe6206
)
Mailbox: free mailbox interrupt before freeing blk queue
author
Fernando Guzman Lugo
<x0095840@ti.com>
Sat, 13 Feb 2010 01:02:32 +0000
(19:02 -0600)
committer
Hiroshi DOYU
<Hiroshi.DOYU@nokia.com>
Wed, 4 Aug 2010 12:50:15 +0000
(15:50 +0300)
Free interrupt before freeing blk_queue to avoid
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>
arch/arm/plat-omap/mailbox.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-omap/mailbox.c
b/arch/arm/plat-omap/mailbox.c
index 08a2df766289b0fc3af9927ab4ebfa560fee618b..252a58698ef78abfabf2a50cae460a82555ad7ca 100644
(file)
--- a/
arch/arm/plat-omap/mailbox.c
+++ b/
arch/arm/plat-omap/mailbox.c
@@
-298,11
+298,10
@@
static int omap_mbox_startup(struct omap_mbox *mbox)
static void omap_mbox_fini(struct omap_mbox *mbox)
{
+ free_irq(mbox->irq, mbox);
mbox_queue_free(mbox->txq);
mbox_queue_free(mbox->rxq);
- free_irq(mbox->irq, mbox);
-
if (unlikely(mbox->ops->shutdown)) {
write_lock(&mboxes_lock);
if (mbox_configured > 0)