Loading system/bta/pan/bta_pan_act.c +12 −16 Original line number Diff line number Diff line Loading @@ -182,8 +182,6 @@ static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, return; } if (sizeof(tBTA_PAN_DATA_PARAMS) > p_buf->offset) { /* offset smaller than data structure in front of actual data */ if (sizeof(BT_HDR) + sizeof(tBTA_PAN_DATA_PARAMS) + p_buf->len > PAN_BUF_SIZE) { android_errorWriteLog(0x534e4554, "63146237"); Loading @@ -196,9 +194,7 @@ static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len); p_new_buf->len = p_buf->len; p_new_buf->offset = sizeof(tBTA_PAN_DATA_PARAMS); } else { p_new_buf = p_buf; } /* copy params into the space before the data */ bdcpy(((tBTA_PAN_DATA_PARAMS *)p_new_buf)->src, src); bdcpy(((tBTA_PAN_DATA_PARAMS *)p_new_buf)->dst, dst); Loading system/stack/bnep/bnep_main.c +0 −1 Original line number Diff line number Diff line Loading @@ -667,7 +667,6 @@ static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_buf) if (bnep_cb.p_data_buf_cb) { (*bnep_cb.p_data_buf_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p_buf, fw_ext_present); osi_free(p_buf); } else if (bnep_cb.p_data_ind_cb) { Loading system/stack/pan/pan_main.c +2 −10 Original line number Diff line number Diff line Loading @@ -629,11 +629,8 @@ void pan_data_buf_ind_cb (UINT16 handle, if (pan_cb.pan_data_buf_ind_cb) (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); else if (pan_cb.pan_data_ind_cb) { (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); osi_free(p_buf); } return; } Loading @@ -656,13 +653,8 @@ void pan_data_buf_ind_cb (UINT16 handle, if (pan_cb.pan_data_buf_ind_cb) (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); else if (pan_cb.pan_data_ind_cb) { (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); osi_free(p_buf); } else osi_free(p_buf); return; } Loading Loading
system/bta/pan/bta_pan_act.c +12 −16 Original line number Diff line number Diff line Loading @@ -182,8 +182,6 @@ static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, return; } if (sizeof(tBTA_PAN_DATA_PARAMS) > p_buf->offset) { /* offset smaller than data structure in front of actual data */ if (sizeof(BT_HDR) + sizeof(tBTA_PAN_DATA_PARAMS) + p_buf->len > PAN_BUF_SIZE) { android_errorWriteLog(0x534e4554, "63146237"); Loading @@ -196,9 +194,7 @@ static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, (UINT8 *)(p_buf + 1) + p_buf->offset, p_buf->len); p_new_buf->len = p_buf->len; p_new_buf->offset = sizeof(tBTA_PAN_DATA_PARAMS); } else { p_new_buf = p_buf; } /* copy params into the space before the data */ bdcpy(((tBTA_PAN_DATA_PARAMS *)p_new_buf)->src, src); bdcpy(((tBTA_PAN_DATA_PARAMS *)p_new_buf)->dst, dst); Loading
system/stack/bnep/bnep_main.c +0 −1 Original line number Diff line number Diff line Loading @@ -667,7 +667,6 @@ static void bnep_data_ind (UINT16 l2cap_cid, BT_HDR *p_buf) if (bnep_cb.p_data_buf_cb) { (*bnep_cb.p_data_buf_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p_buf, fw_ext_present); osi_free(p_buf); } else if (bnep_cb.p_data_ind_cb) { Loading
system/stack/pan/pan_main.c +2 −10 Original line number Diff line number Diff line Loading @@ -629,11 +629,8 @@ void pan_data_buf_ind_cb (UINT16 handle, if (pan_cb.pan_data_buf_ind_cb) (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); else if (pan_cb.pan_data_ind_cb) { (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); osi_free(p_buf); } return; } Loading @@ -656,13 +653,8 @@ void pan_data_buf_ind_cb (UINT16 handle, if (pan_cb.pan_data_buf_ind_cb) (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); else if (pan_cb.pan_data_ind_cb) { (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); osi_free(p_buf); } else osi_free(p_buf); return; } Loading