Messages in this thread Patch in this message | | | From | Jassi Brar <> | Subject | [PATCHv4 5/5] mailbox: Fix deleteing poll timer | Date | Wed, 19 Mar 2014 00:16:39 +0530 |
| |
From: LeyFoon Tan <lftan.linux@gmail.com>
Try to delete the timer only if it was init/used.
Signed-off-by: LeyFoon Tan <lftan.linux@gmail.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org> --- drivers/mailbox/mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c index cdf7d45..d080fc3 100644 --- a/drivers/mailbox/mailbox.c +++ b/drivers/mailbox/mailbox.c @@ -584,7 +584,8 @@ void mbox_controller_unregister(struct mbox_controller *mbox) list_for_each_entry(chan, &con->channels, node) mbox_free_channel(chan); - del_timer_sync(&con->poll); + if (mbox->txdone_poll) + del_timer_sync(&con->poll); kfree(con); } -- 1.8.1.2
| |