<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10937">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">nat: return -EBADF in read wqueue cb on fd closed<br><br>bsc_msc_lost will close the current fd (without freeing it), so let's<br>skip possible writes to an already closed fd<br>bsc_msc_lost will close the current fd (without freeing it), so let's<br>skip possible writes to an already closed fd..<br><br>Change-Id: I55c1a88f6524e897c70abf8ba18f1bb2b1f650aa<br>---<br>M openbsc/src/osmo-bsc_nat/bsc_nat.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/37/10937/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c</span><br><span>index 8cc0f2d..c8a9e74 100644</span><br><span>--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c</span><br><span>+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c</span><br><span>@@ -864,7 +864,7 @@</span><br><span>                           msc_con->name, ret);</span><br><span> </span><br><span>          bsc_msc_lost(msc_con);</span><br><span style="color: hsl(0, 100%, 40%);">-          return -1;</span><br><span style="color: hsl(120, 100%, 40%);">+            return -EBADF;</span><br><span>       }</span><br><span> </span><br><span>        LOGP(DNAT, LOGL_DEBUG,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10937">change 10937</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/10937"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: openbsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I55c1a88f6524e897c70abf8ba18f1bb2b1f650aa </div>
<div style="display:none"> Gerrit-Change-Number: 10937 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>