Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2009 07:17:06 +0000 (UTC)
From:      Maxim Konovalov <maxim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r188842 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb net
Message-ID:  <200902200717.n1K7H6fi019773@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902200717.n1K7H6fi019773>