<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11714">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lchan: rf release: make sure conn is NULL<br><br>lchan_fsm_wait_rf_release_ack_onenter() calls gscon_forget_lchan(). At the<br>point where the conn has no lchan, the lchan must not have a conn. Make sure<br>that conn is NULL after gscon_forget_lchan().<br><br>I hope this fixes OS#3686, it is the only situation I could find where the<br>disassociation is potentially one-sided.<br><br>I get the feeling that this should be hardcoded in gscon_forget_lchan(), but I<br>dimly remember other situations that are less trivial, where it doesn't<br>necessarily make sense to forget reciprocically. So only fixing this one now.<br><br>Related: OS#3686<br>Change-Id: If0c6e495e419b9dbb44443c3fc3f54dd4b714aa5<br>---<br>M src/osmo-bsc/lchan_fsm.c<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/lchan_fsm.c b/src/osmo-bsc/lchan_fsm.c</span><br><span>index 0046f59..d95620f 100644</span><br><span>--- a/src/osmo-bsc/lchan_fsm.c</span><br><span>+++ b/src/osmo-bsc/lchan_fsm.c</span><br><span>@@ -1005,8 +1005,10 @@</span><br><span>         /* For planned releases, a conn has already forgotten about the lchan. And later on, in</span><br><span>       * lchan_reset(), we make sure it does. But in case of releases from error handling, the</span><br><span>      * conn might as well notice now already that its lchan is becoming unusable. */</span><br><span style="color: hsl(0, 100%, 40%);">-        if (lchan->conn)</span><br><span style="color: hsl(120, 100%, 40%);">+   if (lchan->conn) {</span><br><span>                gscon_forget_lchan(lchan->conn, lchan);</span><br><span style="color: hsl(120, 100%, 40%);">+            lchan_forget_conn(lchan);</span><br><span style="color: hsl(120, 100%, 40%);">+     }</span><br><span> </span><br><span>        rc = rsl_tx_rf_chan_release(lchan);</span><br><span>  if (rc)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11714">change 11714</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/11714"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: If0c6e495e419b9dbb44443c3fc3f54dd4b714aa5 </div>
<div style="display:none"> Gerrit-Change-Number: 11714 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>