Re: [dpdk-dev] [PATCH] eal: fix NULL device argument pointer reference

2018-10-22 Thread Thomas Monjalon
22/10/2018 09:30, Thomas Monjalon: > 22/10/2018 08:15, Qi Zhang: > > dev->devargs is not initialized for PCI device, so use dev->bus to > > replace dev->devargs->bus to avoid segment fault when hotplug remove > > a PCI device. > > It is not really specific to PCI device. > The devargs is not initi

Re: [dpdk-dev] [PATCH] eal: fix NULL device argument pointer reference

2018-10-22 Thread Thomas Monjalon
22/10/2018 08:15, Qi Zhang: > dev->devargs is not initialized for PCI device, so use dev->bus to > replace dev->devargs->bus to avoid segment fault when hotplug remove > a PCI device. It is not really specific to PCI device. The devargs is not initialized if the device is probed by default policy

[dpdk-dev] [PATCH] eal: fix NULL device argument pointer reference

2018-10-21 Thread Qi Zhang
dev->devargs is not initialized for PCI device, so use dev->bus to replace dev->devargs->bus to avoid segment fault when hotplug remove a PCI device. Fixes: 244d5130719c ("eal: enable hotplug on multi-process") Signed-off-by: Qi Zhang --- lib/librte_eal/common/eal_common_dev.c | 2 +- 1 file ch