From 6eb47e174ecf249945d0057e36f8682e4f8fd044 Mon Sep 17 00:00:00 2001 From: mvs Date: Wed, 10 Aug 2022 09:01:48 +0000 Subject: [PATCH] Remove netlock assertion from vlan_ioctl(). Now (*if_ioctl)() called without netlock for SIOC{G,S}IFMEDIA commands. ok bluhm@ --- sys/net/if_vlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 61d7abf748a..42e09814397 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.209 2021/08/30 14:44:39 jasper Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.210 2022/08/10 09:01:48 mvs Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -676,7 +676,6 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) uint16_t tag; int error = 0; - NET_ASSERT_LOCKED(); if (sc->sc_dead) return (ENXIO); -- 2.20.1