From 078b673c43cbffcc955cf60b0317f711f0d8c3e2 Mon Sep 17 00:00:00 2001 From: maxim Date: Fri, 13 Feb 2009 12:59:54 +0000 Subject: o In case of the error do not forget to deallocate a cloned device unit. PR: kern/131642 Submitted by: Dmitrij Tejblum MFC after: 1 week --- sys/net/if_vlan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 5a6c9aa..bf037fb 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -746,6 +746,7 @@ vlan_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) ether_ifdetach(ifp); vlan_unconfig(ifp); if_free_type(ifp, IFT_ETHER); + ifc_free_unit(ifc, unit); free(ifv, M_VLAN); return (error); -- cgit v1.1