svn commit: r188575 - head/sys/net

Maxim Konovalov maxim at FreeBSD.org
Fri Feb 13 04:59:55 PST 2009


Author: maxim
Date: Fri Feb 13 12:59:54 2009
New Revision: 188575
URL: http://svn.freebsd.org/changeset/base/188575

Log:
  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

Modified:
  head/sys/net/if_vlan.c

Modified: head/sys/net/if_vlan.c
==============================================================================
--- head/sys/net/if_vlan.c	Fri Feb 13 12:15:45 2009	(r188574)
+++ head/sys/net/if_vlan.c	Fri Feb 13 12:59:54 2009	(r188575)
@@ -746,6 +746,7 @@ vlan_clone_create(struct if_clone *ifc, 
 			ether_ifdetach(ifp);
 			vlan_unconfig(ifp);
 			if_free_type(ifp, IFT_ETHER);
+			ifc_free_unit(ifc, unit);
 			free(ifv, M_VLAN);
 
 			return (error);


More information about the svn-src-head mailing list