* [PATCH 1/2] Fix ofonod crash issue
@ 2011-04-26 9:07 martin.xu
2011-04-26 19:53 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: martin.xu @ 2011-04-26 9:07 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
From: Martin Xu <martin.xu@intel.com>
In case of offline modem when GPRS data connection is connected, if gprs
atom is removed before PPP termination process is complete, the terminate_timer
will not be stop. It will cause ofonod crash when the timer time out.
---
gatchat/ppp_cp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gatchat/ppp_cp.c b/gatchat/ppp_cp.c
index f0731cc..6e4a9c5 100644
--- a/gatchat/ppp_cp.c
+++ b/gatchat/ppp_cp.c
@@ -970,6 +970,8 @@ void pppcp_process_packet(gpointer priv, const guint8 *new_packet)
void pppcp_free(struct pppcp_data *pppcp)
{
+ pppcp_stop_timer(&pppcp->config_timer_data);
+ pppcp_stop_timer(&pppcp->terminate_timer_data);
g_free(pppcp->peer_options);
g_free(pppcp);
}
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] Fix ofonod crash issue
2011-04-26 9:07 [PATCH 1/2] Fix ofonod crash issue martin.xu
@ 2011-04-26 19:53 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-04-26 19:53 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
Hi Martin,
On 04/26/2011 04:07 AM, martin.xu(a)intel.com wrote:
> From: Martin Xu <martin.xu@intel.com>
>
> In case of offline modem when GPRS data connection is connected, if gprs
> atom is removed before PPP termination process is complete, the terminate_timer
> will not be stop. It will cause ofonod crash when the timer time out.
> ---
> gatchat/ppp_cp.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
I fixed up the commit message slightly and applied this patch. Thanks
for that.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-26 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26 9:07 [PATCH 1/2] Fix ofonod crash issue martin.xu
2011-04-26 19:53 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.