Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix unlock and splx inversion. Currently, this doesn...



details:   https://anonhg.NetBSD.org/src/rev/a1869f0ceb2d
branches:  trunk
changeset: 819754:a1869f0ceb2d
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Dec 16 08:47:36 2016 +0000

description:
fix unlock and splx inversion. Currently, this doesn't cause problem because either one is used.

diffstat:

 sys/net/if_pppoe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 6fbb02dc577d -r a1869f0ceb2d sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Fri Dec 16 08:41:01 2016 +0000
+++ b/sys/net/if_pppoe.c        Fri Dec 16 08:47:36 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.120 2016/12/13 00:35:11 knakahara Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.121 2016/12/16 08:47:36 knakahara Exp $ */
 
 /*-
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.120 2016/12/13 00:35:11 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.121 2016/12/16 08:47:36 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -1395,9 +1395,9 @@
                                retry_wait = PPPOE_SLOW_RETRY;
                        } else {
                                pppoe_abort_connect(sc);
+                               RELEASE_SPLNET();
                                PPPOE_PARAM_UNLOCK(sc);
                                PPPOE_SESSION_UNLOCK(sc);
-                               RELEASE_SPLNET();
                                return;
                        }
                }



Home | Main Index | Thread Index | Old Index