svn commit: r188842 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb net

Maxim Konovalov maxim at FreeBSD.org
Thu Feb 19 23:17:09 PST 2009


Author: maxim
Date: Fri Feb 20 07:17:06 2009
New Revision: 188842
URL: http://svn.freebsd.org/changeset/base/188842

Log:
  MFC r188575: don't leak a device unit number.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/net/if_vlan.c

Modified: stable/7/sys/net/if_vlan.c
==============================================================================
--- stable/7/sys/net/if_vlan.c	Fri Feb 20 07:10:33 2009	(r188841)
+++ stable/7/sys/net/if_vlan.c	Fri Feb 20 07:17:06 2009	(r188842)
@@ -740,6 +740,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-stable-7 mailing list