You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/06/06 09:19:39 UTC

[GitHub] [mynewt-nimble] sjanc commented on a change in pull request #466: nimble/ll: Fix aux_data ref counter [WIP]

sjanc commented on a change in pull request #466: nimble/ll: Fix aux_data ref counter [WIP]
URL: https://github.com/apache/mynewt-nimble/pull/466#discussion_r291092023
 
 

 ##########
 File path: nimble/controller/src/ble_ll_scan.c
 ##########
 @@ -3100,7 +3051,8 @@ ble_ll_scan_rx_pkt_in(uint8_t ptype, struct os_mbuf *om, struct ble_mbuf_hdr *hd
             if (BLE_MBUF_HDR_WAIT_AUX(hdr)) {
                 hdr->rxinfo.flags &= ~BLE_MBUF_HDR_F_AUX_PTR_WAIT;
                 if (ble_ll_sched_rmv_elem(&aux_data->sch) == 0) {
-                    ble_ll_scan_aux_data_unref(aux_data);
+                    ble_ll_scan_aux_data_unref(aux_data->sch.cb_arg);
 
 Review comment:
   this looks odd, what is being unrefed here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services