net/bnxt: fix crash in port stop while handling events
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Thu, 20 Feb 2020 04:12:13 +0000 (09:42 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Feb 2020 10:41:20 +0000 (11:41 +0100)
commit0732bcb40f2f54397b70b6c63e0b1c7bdc03b8db
treee1c5506ebd958ad76e3aa80b4e0923b60ae283a3
parent8b0add355f4a38aefc272c995b949f1fe6f1a512
net/bnxt: fix crash in port stop while handling events

Check for bp->hwrm_cmd_resp_addr before using it in HWRM_PREP to avoid
segmentation fault when stop port and meanwhile receive events from FW.

Fixes: df6cd7c1f73a ("net/bnxt: handle reset notify async event from FW")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c