mirror of https://github.com/pvnis/srsRAN_4G.git
rlc_am: hold lock while handling new PDUs
This lock was removed inmaster1cbf7eac
because it was considered unneeded. However, as can be seen in issue #1503, we need to protect the access to rx_window, for example. Issue #1503 shows a stack trace where a PHY worker generates a status PDU. While holding the mutex to access rx_window, the stack thread on the other hand, happily accesses the rx_window member without acquiring the lock. This commit protects all handle_*() functions in write_pdu(). This reverts commit1cbf7eac04
.
parent
e550bf726d
commit
95f5093432
Loading…
Reference in New Issue