[dpdk-dev] [PATCH 1/2] examples/kni: check if pci_dev isn't NULL before using it

Thomas Monjalon thomas at monjalon.net
Wed Oct 25 00:05:19 CEST 2017

21/10/2017 02:26, Ferruh Yigit:
> On 10/16/2017 4:45 AM, Tomasz Duszynski wrote:
> > Since virtual devices, i.e mrvl net pmd, do not touch pci_dev
> > dereferencing it will cause segmentation fault as by default
> > it's set to NULL in rte_eth_dev_info_get().
> > 
> > Signed-off-by: Tomasz Duszynski <tdu at semihalf.com>
> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>

Fixed title: examples/kni: check PCI info not NULL before reading

Applied, thanks

The patch 2/2 is left alone as it may be unneeded.

More information about the dev mailing list