Files
osmo-trx/Transceiver52M
Pau Espin Pedrol 8b0c5368f5 Transceiver: Fix race condition obtaining Dl burst from Upper layer
The queue was being accessed sequentially obtaining and releasing the
mutual exclusion zone twice. First in getStaleBurst() dropping all
FN<currTime, then in getCurrentBurst() trying to obtain FN=currTime.

However, since in between the mutex is released, it could happen that
for instance upper layer would introduce currTime-1 in the queue, which
would make then getCurrentBurst() detect that one instead of potential
currTime in the queue and return NULL.

By holding the mutex during the call to both functions we make sure the
state is kept during the whole transaction.

Related: OS#4487 (comment #7)
Change-Id: If1fd8d7fc5f21ee2894192ef1ac2a3cdda6bbb98
2020-07-10 17:32:03 +02:00
..
2019-10-17 08:06:19 +00:00
2019-10-17 08:06:19 +00:00
2019-07-22 12:06:26 +02:00
2019-07-22 12:06:26 +02:00
2019-07-22 12:06:26 +02:00
2019-07-22 12:06:26 +02:00
2019-10-17 08:06:19 +00:00
2019-10-17 08:06:19 +00:00
2019-07-22 12:06:26 +02:00