raw/octeontx2_dma: assign PCI device in DPI VF
authorRadha Mohan Chintakuntla <radhac@marvell.com>
Fri, 9 Apr 2021 08:06:27 +0000 (01:06 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 15 Apr 2021 08:33:52 +0000 (10:33 +0200)
commit692c0e78a52e62c31ed44d31eb66dafd439e5446
treed87a3f68101216e325e59f9b85fcac13cdaa0b67
parent89813a522e68076e6f50ec18b075fa57cc5ae937
raw/octeontx2_dma: assign PCI device in DPI VF

The PCI device address is being used for sending mailbox which was
introduced in previous commit which replaced the macros so that
multiple DPI blocks in the hardware can be supported.

This patch fixes a NULL pointer access by assigning the PCI device
structure to dpivf.

Fixes: 4495bd887d38 ("raw/octeontx2_dma: support multiple DPI blocks")
Cc: stable@dpdk.org
Signed-off-by: Radha Mohan Chintakuntla <radhac@marvell.com>
drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c