summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index ac04b9ce0b4..b1b49434b04 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.243 2017/05/22 01:56:22 dlg Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.244 2017/05/28 12:51:34 yasuoka Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -416,14 +416,15 @@ decapsulate:
#ifdef PIPEX
if (pipex_enable) {
struct pipex_session *session;
+ int s;
- KERNEL_LOCK();
+ NET_LOCK(s);
if ((session = pipex_pppoe_lookup_session(m)) != NULL) {
pipex_pppoe_input(m, session);
- KERNEL_UNLOCK();
+ NET_UNLOCK(s);
return (1);
}
- KERNEL_UNLOCK();
+ NET_UNLOCK(s);
}
#endif
if (etype == ETHERTYPE_PPPOEDISC)