Date: Mon, 28 Oct 2013 22:41:36 +0000 (UTC) From: Peter Grehan <grehan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r257285 - stable/10/sys/net Message-ID: <201310282241.r9SMfawT070166@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310282241.r9SMfawT070166>