From: kn Date: Wed, 9 Nov 2022 13:09:30 +0000 (+0000) Subject: Recommit r1.669 "Unlock SIOCIFGCLONERS" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e63873a087fffbc8caa55b985bd50f1298e051d7;p=openbsd Recommit r1.669 "Unlock SIOCIFGCLONERS" OK mvs --- diff --git a/sys/net/if.c b/sys/net/if.c index c7400727331..96d8b94cae1 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.674 2022/11/09 13:08:36 kn Exp $ */ +/* $OpenBSD: if.c,v 1.675 2022/11/09 13:09:30 kn Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2389,9 +2389,7 @@ ifioctl_get(u_long cmd, caddr_t data) KERNEL_UNLOCK(); return (error); case SIOCIFGCLONERS: - KERNEL_LOCK(); error = if_clone_list((struct if_clonereq *)data); - KERNEL_UNLOCK(); return (error); case SIOCGIFGMEMB: KERNEL_LOCK();