net/bnxt: fix lock handling in stop and close
authorSomnath Kotur <somnath.kotur@broadcom.com>
Thu, 14 Jan 2021 02:27:16 +0000 (18:27 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:07 +0000 (18:16 +0100)
commit7db2f5edddb2e3b334e224982492e85d048ef9de
tree6ced69dd486d51c8934ae0e34a9fbb770215699b
parent3127f99274b679124658afdbfc49210730c50617
net/bnxt: fix lock handling in stop and close

err_recovery_lock needs to be released before returning in
stop and close_op if FW_RESET flag is set.

Fixes: 6f5f3b99821e ("net/bnxt: check chip reset in stop and close")

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c