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:
Szymon Janc
2024-03-13 08:58:40 +01:00
parent a830ac3645
commit e33099a190
+1
View File
@@ -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;
}