net/i40e: fix allocation check
authorHenry Cai <caihe@huawei.com>
Wed, 5 Apr 2017 13:19:53 +0000 (21:19 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit1cbeaa0eadbbc228a78e930ffdaa603eff4ff2ec
treeec8e40fa1cf360bf87b9a3fd66e26c6d58298111
parent4a8f7cdd2281c7d904eae5b5ee92e4214e945e51
net/i40e: fix allocation check

function i40evf_add_del_all_mac_addr without check return
value of rte_zmalloc

Fixes: 97ac72aa71a9 ("i40e: support setting VF MAC address")
Cc: stable@dpdk.org
Signed-off-by: Henry Cai <caihe@huawei.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c