commit | e33099a190739b8df6689f808d4053fc51b37c1c | [log] [tgz] |
---|---|---|
author | Szymon Janc <szymon.janc@codecoup.pl> | Tue Mar 12 17:17:17 2024 +0100 |
committer | Szymon Janc <szymon.janc@codecoup.pl> | Wed Mar 13 08:58:40 2024 +0100 |
tree | ce1f363c39d06055929ae3c2e165b83f274b5e77 | |
parent | a830ac364550eaf53d80b7c68e25abdc09e00b02 [diff] |
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.
diff --git a/nimble/host/src/ble_att_cmd.c b/nimble/host/src/ble_att_cmd.c index 4106cd0..4760ff6 100644 --- a/nimble/host/src/ble_att_cmd.c +++ b/nimble/host/src/ble_att_cmd.c
@@ -114,6 +114,7 @@ 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; }