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

Ferruh Yigit ferruh.yigit at intel.com
Sat Oct 21 02:26:23 CEST 2017


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>


More information about the dev mailing list