Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix missing splx in ppp_inproc().



details:   https://anonhg.NetBSD.org/src/rev/23df64188c09
branches:  trunk
changeset: 447435:23df64188c09
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Jan 11 02:57:21 2019 +0000

description:
Fix missing splx in ppp_inproc().

diffstat:

 sys/net/if_ppp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r c8ce10d53bf1 -r 23df64188c09 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c  Fri Jan 11 02:55:41 2019 +0000
+++ b/sys/net/if_ppp.c  Fri Jan 11 02:57:21 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ppp.c,v 1.162 2019/01/11 02:55:41 knakahara Exp $   */
+/*     $NetBSD: if_ppp.c,v 1.163 2019/01/11 02:57:21 knakahara Exp $   */
 /*     Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp       */
 
 /*
@@ -102,7 +102,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.162 2019/01/11 02:55:41 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ppp.c,v 1.163 2019/01/11 02:57:21 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "ppp.h"
@@ -1725,6 +1725,7 @@
        /* pktq: inet or inet6 cases */
        if (__predict_true(pktq)) {
                if (__predict_false(!pktq_enqueue(pktq, m, 0))) {
+                       splx(s);
                        ifp->if_iqdrops++;
                        goto bad;
                }
@@ -1736,6 +1737,7 @@
 
        /* ifq: other protocol cases */
        if (!inq) {
+               splx(s);
                goto bad;
        }
        if (IF_QFULL(inq)) {



Home | Main Index | Thread Index | Old Index