Module Name:    src
Committed By:   yamaguchi
Date:           Tue May 18 01:46:29 UTC 2021

Modified Files:
        src/sys/net: if_pppoe.c

Log Message:
Added missing PPPOE_UNLOCK() on dropping PADS and PADT


To generate a diff of this commit:
cvs rdiff -u -r1.173 -r1.174 src/sys/net/if_pppoe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_pppoe.c
diff -u src/sys/net/if_pppoe.c:1.173 src/sys/net/if_pppoe.c:1.174
--- src/sys/net/if_pppoe.c:1.173	Thu May 13 03:48:55 2021
+++ src/sys/net/if_pppoe.c	Tue May 18 01:46:29 2021
@@ -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 @@ breakbreak:;
 
 		if (memcmp(&sc->sc_dest, eh->ether_shost,
 		    sizeof sc->sc_dest) != 0) {
+			PPPOE_UNLOCK(sc);
 			goto done;
 		}
 
@@ -1036,6 +1037,7 @@ breakbreak:;
 
 		if (memcmp(&sc->sc_dest, eh->ether_shost,
 		    sizeof sc->sc_dest) != 0) {
+			PPPOE_UNLOCK(sc);
 			goto done;
 		}
 

Reply via email to