[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1287543220-15483-1-git-send-email-x0095840@ti.com>
Date: Tue, 19 Oct 2010 21:53:40 -0500
From: Fernando Guzman Lugo <x0095840@...com>
To: <Hiroshi.DOYU@...ia.com>
Cc: <felipe.contreras@...ia.com>, <david.cohen@...ia.com>,
<linux-kernel@...r.kernel.org>, <linux-omap@...r.kernel.org>,
<linux-arm-kernel@...ts.arm.linux.org.uk>,
Fernando Guzman Lugo <x0095840@...com>
Subject: [PATCH] omap: mailbox - fix missing mbox owner assignment when creating queue
mbox field of omap_mbox_queue structure is never assigned to
the mailbox owner. Causing kernel panic when dereference it.
Signed-off-by: Fernando Guzman Lugo <x0095840@...com>
---
arch/arm/plat-omap/mailbox.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/plat-omap/mailbox.c b/arch/arm/plat-omap/mailbox.c
index c59c9c3..b1e0e8f 100644
--- a/arch/arm/plat-omap/mailbox.c
+++ b/arch/arm/plat-omap/mailbox.c
@@ -217,6 +217,7 @@ static struct omap_mbox_queue *mbox_queue_alloc(struct omap_mbox *mbox,
return NULL;
spin_lock_init(&mq->lock);
+ mq->mbox = mbox;
if (kfifo_alloc(&mq->fifo, mbox_kfifo_size, GFP_KERNEL))
goto error;
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists