net/bnxt: fix null dereference in interrupt handler
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 20 Jul 2021 16:21:58 +0000 (21:51 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 20 Jul 2021 21:33:25 +0000 (23:33 +0200)
commit3f44ec48c733f7d7607877164c9aa0305de9cecd
treed7437da6b762de3283700bc52958e9d524507146
parent609960ca7b0c7c7295f1641c6a8feac7af871024
net/bnxt: fix null dereference in interrupt handler

Coverity reports that pointer "cpr->cp_ring_struct" may be
dereferenced with null value. This patch fixes this.

Coverity issue: 372063
Fixes: 5ed30db87fa8 ("net/bnxt: fix missing barriers in completion handling")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Lance Richardson <lance.richardson@broadcom.com>
drivers/net/bnxt/bnxt_irq.c