From 0841ec510c97b0c552d10cd979de8c0b3d934baa Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Mon, 6 Apr 2020 14:29:34 +0200 Subject: [PATCH] Fix deadlock when UE disconnected due to incorrect use of rwlock --- srsenb/src/stack/mac/mac.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/mac.cc b/srsenb/src/stack/mac/mac.cc index da60d19fe..96ccf0e4c 100644 --- a/srsenb/src/stack/mac/mac.cc +++ b/srsenb/src/stack/mac/mac.cc @@ -418,7 +418,7 @@ int mac::snr_info(uint32_t tti, uint16_t rnti, uint32_t enb_cc_idx, float snr) int mac::ta_info(uint32_t tti, uint16_t rnti, float ta_us) { - srslte::rwlock_write_guard lock(rwlock); + srslte::rwlock_read_guard lock(rwlock); if (ue_db.count(rnti)) { uint32_t nof_ta_count = ue_db[rnti]->set_ta_us(ta_us); if (nof_ta_count) {