net/bnxt: check access to possible null pointer
authorThierry Herbelot <thierry.herbelot@6wind.com>
Mon, 24 May 2021 09:00:38 +0000 (11:00 +0200)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 7 Jun 2021 21:14:12 +0000 (23:14 +0200)
commitdc59260fb68960ab4296d974370594f6ea31ab9f
treea2ed3713cf32401d4c16843981c0a0661c7e0cd9
parent2ca92f54410400af76a1f0bc3bfecc8077e282aa
net/bnxt: check access to possible null pointer

Check that pointers are valid before using them.

Fixes: 7bc8e9a227ccb ("net/bnxt: support async link notification")
Cc: stable@dpdk.org
Signed-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_irq.c