common/cnxk: add null check for inline device
authorVolodymyr Fialko <vfialko@marvell.com>
Mon, 28 Mar 2022 10:41:02 +0000 (12:41 +0200)
committerJerin Jacob <jerinj@marvell.com>
Mon, 2 May 2022 17:42:38 +0000 (19:42 +0200)
commit7ae43d883d77c51ab00e4869329803107b9f2425
tree36bbf0f7283b10fe3409488a66169f218904a65a
parentc6353c575469adea5db093ac68aed0525062e7d7
common/cnxk: add null check for inline device

Inline device could be null in cases when it was not bound or missing.
Added check to prevent null pointer access.

Fixes: fe5846bcc07 ("net/cnxk: add devargs for min-max SPI")
Cc: stable@dpdk.org
Signed-off-by: Volodymyr Fialko <vfialko@marvell.com>
drivers/common/cnxk/roc_nix_inl.c