svn commit: r257078 - head/sys/net

Peter Grehan grehan at FreeBSD.org
Thu Oct 24 22:21:32 UTC 2013


Author: grehan
Date: Thu Oct 24 22:21:31 2013
New Revision: 257078
URL: http://svnweb.freebsd.org/changeset/base/257078

Log:
  Fix panic in the tap driver when a tap and vmnet interface were
  created after each other e.g.
  
   ifconfig tap0
   ifconfig vmnet0
   <panic>
  
  Appears to be a cut'n'paste error from the tap code to the vmnet
  code where the name string wasn't updated in the call to make_dev().
  
  Reviewed by:	glebius
  MFC after:	3 days

Modified:
  head/sys/net/if_tap.c

Modified: head/sys/net/if_tap.c
==============================================================================
--- head/sys/net/if_tap.c	Thu Oct 24 21:58:14 2013	(r257077)
+++ head/sys/net/if_tap.c	Thu Oct 24 22:21:31 2013	(r257078)
@@ -205,7 +205,7 @@ vmnet_clone_create(struct if_clone *ifc,
 	i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, VMNET_DEV_MASK);
 	if (i) {
 		dev = make_dev(&tap_cdevsw, unit | VMNET_DEV_MASK, UID_ROOT,
-		    GID_WHEEL, 0600, "%s%d", tapname, unit);
+		    GID_WHEEL, 0600, "%s%d", vmnetname, unit);
 	}
 
 	tapcreate(dev);


More information about the svn-src-head mailing list