net/i40e: check multi-driver option parsing

This patch fixes the coverity CHECKED_RETURN issue.

Coverity issue: 261779
Fixes: cfdfca493cae ("net/i40e: fix multiple driver support")
Cc: stable@dpdk.org

Reported-by: John McNamara <john.mcnamara@intel.com>
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
This commit is contained in:
Beilei Xing 2018-02-08 21:18:12 +08:00 committed by Ferruh Yigit
parent d2bc8f4d45
commit 7469a495ae

View File

@ -1107,8 +1107,12 @@ i40e_support_multi_driver(struct rte_eth_dev *dev)
"the first invalid or last valid one is used !",
ETH_I40E_SUPPORT_MULTI_DRIVER);
rte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER,
i40e_parse_multi_drv_handler, pf);
if (rte_kvargs_process(kvlist, ETH_I40E_SUPPORT_MULTI_DRIVER,
i40e_parse_multi_drv_handler, pf) < 0) {
rte_kvargs_free(kvlist);
return -EINVAL;
}
rte_kvargs_free(kvlist);
return 0;
}