vlib: fix vmbus error log 93/34093/1
authorBenoît Ganne <bganne@cisco.com>
Wed, 13 Oct 2021 09:37:04 +0000 (11:37 +0200)
committerBenoît Ganne <bganne@cisco.com>
Wed, 13 Oct 2021 09:59:33 +0000 (11:59 +0200)
struct dirent *e is freed when calling closedir(). Use ifname instead.

Type: fix

Change-Id: Icc9ca52c33ecc1dee7a9e28802149e4e3e4c8ac0
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlib/linux/vmbus.c

index d50b539..1281365 100644 (file)
@@ -284,9 +284,9 @@ vlib_vmbus_bind_to_uio (vlib_vmbus_addr_t * addr)
 
   if (ifr.ifr_flags & IFF_UP)
     {
-      error = clib_error_return (0,
-                                "Skipping VMBUS device %U as host interface %s is up",
-                                format_vlib_vmbus_addr, addr, e->d_name);
+      error = clib_error_return (
+       0, "Skipping VMBUS device %U as host interface %s is up",
+       format_vlib_vmbus_addr, addr, ifname);
       close (fd);
       goto done;
     }