Skip to content

Commit

Permalink
host/ble_att_ctl.c: release eatt chan in ble_att_clt_tx_notify
Browse files Browse the repository at this point in the history
Channel was taken and function returns before release.
  • Loading branch information
KKopyscinski committed Aug 7, 2023
1 parent f0dface commit d0dd7d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nimble/host/src/ble_att_clt.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,9 @@ ble_att_clt_tx_notify(uint16_t conn_handle, uint16_t handle,
os_mbuf_concat(txom2, txom);

cid = ble_eatt_get_available_chan_cid(conn_handle, BLE_GATT_OP_DUMMY);
return ble_att_tx(conn_handle, cid, txom2);
rc = ble_att_tx(conn_handle, cid, txom2);
ble_eatt_release_chan(conn_handle, BLE_GATT_OP_DUMMY);
return rc;

err:
os_mbuf_free_chain(txom);
Expand Down

0 comments on commit d0dd7d1

Please sign in to comment.