From 81829c2670676c0ab4adb888b8dbcf83958b79bf Mon Sep 17 00:00:00 2001 From: liqigan Date: Mon, 11 Apr 2022 17:14:02 +0800 Subject: [PATCH] add missing unlock in btc_spp_cb_handler of BTA_JV_RFCOMM_WRITE_EVT --- components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c b/components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c index 1cd594576b..59cdf6064f 100644 --- a/components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c +++ b/components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c @@ -1070,6 +1070,7 @@ void btc_spp_cb_handler(btc_msg_t *msg) BT_HDR *p_buf; serial = slot->serial; if ((p_buf = fixed_queue_try_peek_first(slot->tx.queue)) == NULL) { + osi_mutex_unlock(&spp_local_param.spp_slot_mutex); break; } if (p_data->rfc_write.status == BTA_JV_SUCCESS) {