summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-12-15 09:39:49 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-12-15 09:39:49 +0000
commitd63dac8cced59167c9ab03fb6291e9fce60d2258 (patch)
treecf9e2fe24f6d81e1275cfb1e8116deef18e34716 /sys
parent5ef6e6f68fb253fde139b7a56883d5f41d53fbf7 (diff)
Add a missing unlock.
Spotted by Hrvoje Popovski using witness(4) OK dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_aggr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_aggr.c b/sys/net/if_aggr.c
index 218c8f89cfb..d6a68ce6626 100644
--- a/sys/net/if_aggr.c
+++ b/sys/net/if_aggr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aggr.c,v 1.25 2019/12/11 11:55:12 dlg Exp $ */
+/* $OpenBSD: if_aggr.c,v 1.26 2019/12/15 09:39:48 visa Exp $ */
/*
* Copyright (c) 2019 The University of Queensland
@@ -2450,6 +2450,7 @@ aggr_iff(struct aggr_softc *sc)
promisc ? "on" : "off");
}
}
+ rw_exit_read(&sc->sc_lock);
sc->sc_promisc = promisc;
}