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:
0e828e8
)
Mailbox: Check valid registered callback before calling
author
Fernando Guzman Lugo
<x0095840@ti.com>
Thu, 28 Jan 2010 02:04:02 +0000
(20:04 -0600)
committer
Hiroshi DOYU
<Hiroshi.DOYU@nokia.com>
Wed, 4 Aug 2010 12:50:15 +0000
(15:50 +0300)
This patch checks if the mailbox user has assinged a valid
callback fuction before calling it.
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 77c23f5a003750fdecf28f17d4ddab06a2ed3258..72efbe5be5781233c2a98ba636f0f1fb26199fc0 100644
(file)
--- a/
arch/arm/plat-omap/mailbox.c
+++ b/
arch/arm/plat-omap/mailbox.c
@@
-146,7
+146,8
@@
static void mbox_rx_work(struct work_struct *work)
msg = (mbox_msg_t)rq->special;
blk_end_request_all(rq, 0);
- mbox->rxq->callback((void *)msg);
+ if (mbox->rxq->callback)
+ mbox->rxq->callback((void *)msg);
}
}