summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 4983649356c..fca93c28534 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.486 2017/02/07 10:08:21 mpi Exp $ */
+/* $OpenBSD: if.c,v 1.487 2017/02/16 10:15:12 mpi Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -2029,10 +2029,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
case SIOCGIFPARENT:
if (ifp->if_ioctl == 0)
return (EOPNOTSUPP);
- /* XXXSMP breaks atomicity */
- rw_exit_write(&netlock);
error = (*ifp->if_ioctl)(ifp, cmd, data);
- rw_enter_write(&netlock);
break;
case SIOCGIFDESCR: