net/bnxt: check for VNIC ID in rollback
authorSomnath Kotur <somnath.kotur@broadcom.com>
Wed, 2 Oct 2019 23:25:54 +0000 (16:25 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commit9be7bc29b36c6f9b5ea9919f0f104605d3cbfbc3
tree9827d0d97c697284e39a363ca40651f587d0da7c
parent288d51eb188de7cb9cebfcfaf0d38bb283ec6187
net/bnxt: check for VNIC ID in rollback

If driver init/probe fails as part of cleanup/rollback, we may end
up invoking this HWRM cmd even on an invalid vNIC which will
unnecessarily log an error message as the cmd will fail.
Check for invalid ID before issuing the HWRM cmd

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Rahul Gupta <rahul.gupta@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c