OSDN Git Service

Remove MCB from mapping table when entry is released
authorPavlin Radoslavov <pavlin@google.com>
Thu, 3 Mar 2016 21:16:45 +0000 (13:16 -0800)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 4 Mar 2016 00:08:08 +0000 (00:08 +0000)
Explicitly remove MCB entry from the LCB mapping table when
the entry is released.

Bug: 27334916
Change-Id: I14e3f1f5eeffa33e733c4a116d0a70cd7c06753f

stack/rfcomm/rfc_utils.c

index 9128ccd..f324ade 100644 (file)
@@ -206,6 +206,9 @@ void rfc_release_multiplexer_channel (tRFC_MCB *p_mcb)
 {
     void    *p_buf;
 
+    /* Remove the MCB from the mapping table */
+    rfc_save_lcid_mcb(NULL, p_mcb->lcid);
+
     rfc_timer_stop (p_mcb);
     alarm_free(p_mcb->mcb_timer);