net/bnxt: fix crash on probe failure
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 17 Jul 2019 10:41:26 +0000 (16:11 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit2c43b439e50df5e1ebf8f97c1e600825d9601ec9
tree683040291b993103e32aa56ee418adc57b885453
parent96b0931d51e71947aaed17ba7d938acef3958f2c
net/bnxt: fix crash on probe failure

Fixed couple of possible segfaults due to NULL pointer
dereference in case of probe failure.

Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_irq.c
drivers/net/bnxt/bnxt_vnic.c