<p>pespin <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/19206">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Transceiver: Fix race condition obtaining Dl burst from Upper layer<br><br>The queue was being accessed sequentially obtaining and releasing the<br>mutual exclusion zone twice. First in getStaleBurst() dropping all<br>FN<currTime, then in getCurrentBurst() trying to obtain FN=currTime.<br><br>However, since in between the mutex is released, it could happen that<br>for instance upper layer would introduce currTime-1 in the queue, which<br>would make then getCurrentBurst() detect that one instead of potential<br>currTime in the queue and return NULL.<br><br>By holding the mutex during the call to both functions we make sure the<br>state is kept during the whole transaction.<br><br>Related: OS#4487 (comment #7)<br>Change-Id: If1fd8d7fc5f21ee2894192ef1ac2a3cdda6bbb98<br>---<br>M Transceiver52M/Transceiver.cpp<br>M Transceiver52M/radioVector.cpp<br>M Transceiver52M/radioVector.h<br>3 files changed, 17 insertions(+), 23 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/06/19206/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-trx/+/19206">change 19206</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-trx/+/19206"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If1fd8d7fc5f21ee2894192ef1ac2a3cdda6bbb98 </div>
<div style="display:none"> Gerrit-Change-Number: 19206 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>