OSDN Git Service

Add missing creation of timer tSMP_CB.smp_rsp_timer_ent
authorPavlin Radoslavov <pavlin@google.com>
Fri, 22 Jan 2016 21:13:45 +0000 (13:13 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 22 Jan 2016 21:13:45 +0000 (13:13 -0800)
Add missing creation of timer tSMP_CB.smp_rsp_timer_ent so
the timer is not NULL.

Bug: 26611369
Change-Id: I2882d40090599b628ecee777b244376168806776

stack/smp/smp_utils.c

index d9b456f..f9e66a7 100644 (file)
@@ -877,6 +877,7 @@ void smp_cb_cleanup(tSMP_CB   *p_cb)
     memset(p_cb, 0, sizeof(tSMP_CB));
     p_cb->p_callback = p_callback;
     p_cb->trace_level = trace_level;
+    p_cb->smp_rsp_timer_ent = alarm_new("smp.smp_rsp_timer_ent");
 }
 
 /*******************************************************************************