net/bnxt: add null check for resource manager
authorShahaji Bhosle <sbhosle@broadcom.com>
Fri, 11 Sep 2020 01:55:45 +0000 (18:55 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:11 +0000 (18:55 +0200)
commit1f2b4fbd1673e0a88e2a3b0b00ea00591a823dae
treee358112a615a6b7fde2a50aed7707c473d72984a
parentf01b6fceac77d9649aed46daf231b334f6a9dc94
net/bnxt: add null check for resource manager

Verify the resource manager has been allocated prior to using it.
This can avoid potential segmentation faults.

Signed-off-by: Shahaji Bhosle <sbhosle@broadcom.com>
Reviewed-by: Mike Baucom <michael.baucom@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/tf_core/tf_rm.c