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>
{
struct bnxt_irq *irq;
+ if (bp->irq_tbl == NULL)
+ return;
+
irq = bp->irq_tbl;
if (irq) {
if (irq->requested) {
struct bnxt_vnic_info *vnic;
unsigned int i;
+ if (bp->vnic_info == NULL)
+ return;
+
for (i = 0; i < bp->max_vnics; i++) {
vnic = &bp->vnic_info[i];
if (vnic->rss_table) {