summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r--src/plugins/dpdk/device/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c
index b64f76bf185..f9927dbeebc 100644
--- a/src/plugins/dpdk/device/init.c
+++ b/src/plugins/dpdk/device/init.c
@@ -287,14 +287,15 @@ dpdk_lib_init (dpdk_main_t * dm)
if (vmbus_dev)
{
unformat_input_t input_vmbus;
-
- unformat_init_vector (&input_vmbus, (u8 *) dev_info.device->name);
+ unformat_init_string (&input_vmbus, dev_info.device->name,
+ strlen (dev_info.device->name));
if (unformat (&input_vmbus, "%U", unformat_vlib_vmbus_addr,
&vmbus_addr))
{
p = mhash_get (&dm->conf->device_config_index_by_vmbus_addr,
&vmbus_addr);
}
+ unformat_free (&input_vmbus);
}
if (p)