net/bnxt: fix resource leak
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 20 Oct 2020 23:24:28 +0000 (16:24 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:26 +0000 (23:24 +0100)
commit0f8f35a26a974e5510cec1ca6297537d07e3e782
treecce2c24829b8667a540c0dd059feede8b21fce40
parent99e47bbe4c074c879bbe5d2c316754859fa00912
net/bnxt: fix resource leak

Fix a potential resource leak in case of errors during dev args
parsing during device probe.

Fixes: 6dc83230b43b ("net/bnxt: support port representor data path")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c