Source-Changes-HG archive

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

[src/trunk]: src/sys/net Added missing PPPOE_UNLOCK() on dropping PADS and PADT



details:   https://anonhg.NetBSD.org/src/rev/9c4d0cfa8137
branches:  trunk
changeset: 1021216:9c4d0cfa8137
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue May 18 01:46:29 2021 +0000

description:
Added missing PPPOE_UNLOCK() on dropping PADS and PADT

diffstat:

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

diffs (34 lines):

diff -r bcd4161ff836 -r 9c4d0cfa8137 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Mon May 17 22:36:31 2021 +0000
+++ b/sys/net/if_pppoe.c        Tue May 18 01:46:29 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.173 2021/05/13 03:48:55 yamaguchi Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.174 2021/05/18 01:46:29 yamaguchi 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.173 2021/05/13 03:48:55 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.174 2021/05/18 01:46:29 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -1009,6 +1009,7 @@
 
                if (memcmp(&sc->sc_dest, eh->ether_shost,
                    sizeof sc->sc_dest) != 0) {
+                       PPPOE_UNLOCK(sc);
                        goto done;
                }
 
@@ -1036,6 +1037,7 @@
 
                if (memcmp(&sc->sc_dest, eh->ether_shost,
                    sizeof sc->sc_dest) != 0) {
+                       PPPOE_UNLOCK(sc);
                        goto done;
                }
 



Home | Main Index | Thread Index | Old Index