Skip to content

Commit

Permalink
nimble/host: Fix possible deadlock in ble_att_tx
Browse files Browse the repository at this point in the history
If ble_hs_misc_conn_chan_find_reqd() failed function would exit with
HS lock locked.
  • Loading branch information
sjanc committed Mar 13, 2024
1 parent a830ac3 commit e33099a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nimble/host/src/ble_att_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ ble_att_tx(uint16_t conn_handle, uint16_t cid, struct os_mbuf *txom)
rc = ble_hs_misc_conn_chan_find_reqd(conn_handle, BLE_L2CAP_CID_ATT, &conn,
&chan);
if (rc != 0) {
ble_hs_unlock();
os_mbuf_free_chain(txom);
return rc;
}
Expand Down

0 comments on commit e33099a

Please sign in to comment.