mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-12 08:57:22 +00:00
nimble/host: Fix possible deadlock in ble_att_tx
If ble_hs_misc_conn_chan_find_reqd() failed function would exit with HS lock locked.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user