summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-02-24 17:25:16 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-02-24 17:25:16 +0000
commit33499e2ae56b306afb9897f6c16e1496a01f51a6 (patch)
treebbfb0868b95792c0bb997bab2495fcba70037864 /sys/net/if_vlan.c
parentf9ad25aacee8d979c5414e1143e1b526145c66e1 (diff)
downloadsrc-test2-33499e2ae56b306afb9897f6c16e1496a01f51a6.tar.gz
src-test2-33499e2ae56b306afb9897f6c16e1496a01f51a6.zip
Notes
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index dbed1bd393a6..00ed046a1444 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -379,9 +379,10 @@ trunk_destroy(struct ifvlantrunk *trunk)
#ifndef VLAN_ARRAY
vlan_freehash(trunk);
#endif
- TRUNK_LOCK_DESTROY(trunk);
- LIST_REMOVE(trunk, trunk_entry);
trunk->parent->if_vlantrunk = NULL;
+ LIST_REMOVE(trunk, trunk_entry);
+ TRUNK_UNLOCK(trunk);
+ TRUNK_LOCK_DESTROY(trunk);
free(trunk, M_VLAN);
}