net/i40e/base: properly clean resources
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 25 Sep 2018 02:34:31 +0000 (10:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:47 +0000 (18:53 +0200)
commit02016804ed5e6a46f9162737bcdc78a3780332f5
tree0f06a939644bdecdd2d5f709ca8c2ab60642b1f3
parentb72611a2743c4198e3b031cf120e0bd432256c83
net/i40e/base: properly clean resources

Allocated resources were not freed in the event of a failure in
i40e_init_lan_hmc function. This patch gracefully handles the fail
case after initializing the lan hmc.

Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_lan_hmc.c