summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-10-28 22:41:36 +0000
committergrehan <grehan@FreeBSD.org>2013-10-28 22:41:36 +0000
commit2f628a2240ae4ca4be3d33de6ba067e0e4d4609c (patch)
tree8fc82455a725a14c034af7847a7b249feaaef272 /sys/net
parentb1f939cc2d16430b422067cdf9781196178aa824 (diff)
downloadFreeBSD-src-2f628a2240ae4ca4be3d33de6ba067e0e4d4609c.zip
FreeBSD-src-2f628a2240ae4ca4be3d33de6ba067e0e4d4609c.tar.gz
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)
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index fe53a6a..62005a3 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -205,7 +205,7 @@ vmnet_clone_create(struct if_clone *ifc, int unit, caddr_t params)
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);
OpenPOWER on IntegriCloud