svn commit: r257285 - stable/10/sys/net

Peter Grehan grehan at FreeBSD.org
Mon Oct 28 22:41:36 UTC 2013


Author: grehan
Date: Mon Oct 28 22:41:36 2013
New Revision: 257285
URL: http://svnweb.freebsd.org/changeset/base/257285

Log:
  MFC r257078
    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().
  
  Approved by:  re (glebius)

Modified:
  stable/10/sys/net/if_tap.c
Directory Properties:
  stable/10/sys/   (props changed)

Modified: stable/10/sys/net/if_tap.c
==============================================================================
--- stable/10/sys/net/if_tap.c	Mon Oct 28 22:26:03 2013	(r257284)
+++ stable/10/sys/net/if_tap.c	Mon Oct 28 22:41:36 2013	(r257285)
@@ -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-stable-10 mailing list