summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-02-17 13:41:55 +0000
committermaxim <maxim@FreeBSD.org>2003-02-17 13:41:55 +0000
commit0e0fc7fd7e4f9120fd24fdd1965480376ca2ddae (patch)
tree5a61af04ebbbff0202f82afe45b2ff240cbf6504 /sys/net/if_spppsubr.c
parentd08c1f6ee18856519bcf0884b104278d8f4e1695 (diff)
downloadFreeBSD-src-0e0fc7fd7e4f9120fd24fdd1965480376ca2ddae.zip
FreeBSD-src-0e0fc7fd7e4f9120fd24fdd1965480376ca2ddae.tar.gz
o Restore an interrupt priority level before return.
Submitted by: Roman Kurakin <rik@cronyx.ru> Reviewed by: joerg MFC after: 5 days
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 7014a89..cfd1546 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -980,8 +980,10 @@ sppp_output(struct ifnet *ifp, struct mbuf *m,
*/
if (! IF_HANDOFF_ADJ(ifq, m, ifp, 3)) {
++ifp->if_oerrors;
+ splx (s);
return (rv? rv: ENOBUFS);
}
+ splx (s);
/*
* Unlike in sppp_input(), we can always bump the timestamp
* here since sppp_output() is only called on behalf of
OpenPOWER on IntegriCloud