From: mvs Date: Mon, 25 Jul 2022 08:29:26 +0000 (+0000) Subject: Don't grab netlock within pppacioctl(). pipex(4) doesn't rely on X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bb12f341317b710e0cb6627ef9a3ed163721a2e1;p=openbsd Don't grab netlock within pppacioctl(). pipex(4) doesn't rely on netlock anymore. ok bluhm@ yasuoka@ --- diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c index d7309ca6089..fd099d81ff0 100644 --- a/sys/net/if_pppx.c +++ b/sys/net/if_pppx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pppx.c,v 1.120 2022/07/18 10:55:20 mvs Exp $ */ +/* $OpenBSD: if_pppx.c,v 1.121 2022/07/25 08:29:26 mvs Exp $ */ /* * Copyright (c) 2010 Claudio Jeker @@ -1154,7 +1154,6 @@ pppacioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) struct pppac_softc *sc = pppac_lookup(dev); int error = 0; - NET_LOCK(); switch (cmd) { case FIONBIO: break; @@ -1173,7 +1172,6 @@ pppacioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) error = pipex_ioctl(sc, cmd, data); break; } - NET_UNLOCK(); return (error); }