Re: [dpdk-dev] [PATCH] examples/ioat: fix possible null dereference

2019-11-26 Thread David Marchand
On Mon, Nov 25, 2019 at 5:48 PM Bruce Richardson wrote: > > When searching for raw devices with the correct type, we check the driver > name using strcmp, without first checking that the call to info get > succeeded and assigned a value to that pointer. > > If the call to get the device info fails

[dpdk-dev] [PATCH] examples/ioat: fix possible null dereference

2019-11-25 Thread Bruce Richardson
When searching for raw devices with the correct type, we check the driver name using strcmp, without first checking that the call to info get succeeded and assigned a value to that pointer. If the call to get the device info fails, we can treat it as if the device didn't match, and continue the lo