net/bnxt: fix error handling in device start
authorSomnath Kotur <somnath.kotur@broadcom.com>
Thu, 24 Dec 2020 09:37:33 +0000 (15:07 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Jan 2021 18:24:30 +0000 (19:24 +0100)
commit9d276b439aafab582c5e07e82ded75570b4dc9b4
tree2fbaa46df58337e398a2abb20e090ff980fd4755
parentc9ffd6f88653163d51c497bb56c62ec3276caf3d
net/bnxt: fix error handling in device start

Call bnxt_dev_stop in error path of bnxt_dev_start_op() to keep
it simple and consistent

Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c