net/bnxt: check for null completion ring doorbell
authorSomnath Kotur <somnath.kotur@broadcom.com>
Sat, 8 Jun 2019 19:22:04 +0000 (23:22 +0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 15:01:06 +0000 (00:01 +0900)
commit2807c5861e31b99295b915b28e121ce059a46416
tree18d698a561e16e2d1a61f822f2ff3ac0595a5672
parent11e5e19695c7bfb365579f51a05ea057e0320f61
net/bnxt: check for null completion ring doorbell

It is observed that sometimes during init, the bnxt_int_handler() gets
invoked while the cpr->cp_db.doorbell is not yet initialized. Check for
the same and return.

Fixes: f7ecea911ec5 ("net/bnxt: fix interrupt handler")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
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