From 6de8e4b2e8ef5aaf24df623896f563cc08d98a53 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 25 Jul 2013 14:14:09 -0700 Subject: [PATCH] netdev-bsd: Fix typo in label name. Signed-off-by: Ben Pfaff CC: Ed Maste --- lib/netdev-bsd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c index 860518242..903659f28 100644 --- a/lib/netdev-bsd.c +++ b/lib/netdev-bsd.c @@ -363,14 +363,14 @@ netdev_bsd_create_tap(const struct netdev_class *class, const char *name, if (netdev->tap_fd < 0) { error = errno; VLOG_WARN("opening \"/dev/tap\" failed: %s", ovs_strerror(error)); - goto error_undef_notifier; + goto error_unref_notifier; } /* Retrieve tap name (e.g. tap0) */ if (ioctl(netdev->tap_fd, TAPGIFNAME, &ifr) == -1) { /* XXX Need to destroy the device? */ error = errno; - goto error_undef_notifier; + goto error_unref_notifier; } /* Change the name of the tap device */ @@ -379,7 +379,7 @@ netdev_bsd_create_tap(const struct netdev_class *class, const char *name, if (ioctl(af_inet_sock, SIOCSIFNAME, &ifr) == -1) { error = errno; destroy_tap(netdev->tap_fd, ifr.ifr_name); - goto error_undef_notifier; + goto error_unref_notifier; } kernel_name = xstrdup(name); #else @@ -394,7 +394,7 @@ netdev_bsd_create_tap(const struct netdev_class *class, const char *name, error = set_nonblocking(netdev->tap_fd); if (error) { destroy_tap(netdev->tap_fd, kernel_name); - goto error_undef_notifier; + goto error_unref_notifier; } /* Turn device UP */ @@ -403,7 +403,7 @@ netdev_bsd_create_tap(const struct netdev_class *class, const char *name, if (ioctl(af_inet_sock, SIOCSIFFLAGS, &ifr) == -1) { error = errno; destroy_tap(netdev->tap_fd, kernel_name); - goto error_undef_notifier; + goto error_unref_notifier; } /* initialize the device structure and @@ -414,7 +414,7 @@ netdev_bsd_create_tap(const struct netdev_class *class, const char *name, return 0; -error_undef_notifier: +error_unref_notifier: cache_notifier_unref(); error: free(netdev); -- 2.43.0