net/bnxt: fix cleanup on mutex init failure
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 1 Dec 2020 20:52:53 +0000 (12:52 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commit5bbf650b7105f867145664bfe1feeba06386a0d8
tree2b774a3854d801d51fe2e33b3d5fb1963347826f
parent4297cadef3a6eb42c32c12a1b3926316ee0e0f9a
net/bnxt: fix cleanup on mutex init failure

In case mutex init fails during initialization, start cleanup and
fail the initialization process.

Fixes: a73b8e939f10 ("net/bnxt: fix race between start and interrupt handler")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c