From: Neil Horman Date: Thu, 18 Dec 2014 11:31:56 +0000 (-0500) Subject: xenvirt: fix build break on ethernet address parsing X-Git-Tag: spdx-start~9895 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=53d81e2d436a0340e985280701ff541501b95a8a;p=dpdk.git xenvirt: fix build break on ethernet address parsing Back in commit aaa662e75c23c61 ("cmdline: fix overflow on bsd"), the author failed to fixup a call to cmdline_parse_etheraddr in xenvirt. This patch makes the needed correction to avoid a build break. Signed-off-by: Neil Horman Acked-by: Olivier Matz --- diff --git a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c index 6555ec5424..04e30c94b5 100644 --- a/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c +++ b/lib/librte_pmd_xenvirt/rte_eth_xenvirt.c @@ -586,8 +586,9 @@ rte_eth_xenvirt_parse_args(struct xenvirt_dict *dict, if (!strncmp(pair[0], RTE_ETH_XENVIRT_MAC_PARAM, sizeof(RTE_ETH_XENVIRT_MAC_PARAM))) { if (cmdline_parse_etheraddr(NULL, - pair[1], - &dict->addr) < 0) { + pair[1], + &dict->addr, + sizeof(dict->addr)) < 0) { RTE_LOG(ERR, PMD, "Invalid %s device ether address\n", name);