numam-dpdk/examples
Bruce Richardson 1fe0bd0acd examples/ioat: fix possible null dereference
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 loop, so the easiest fix is just to skip the
strcmp if the driver_name is null. [A non-null value from a previous failed
match is ok as it too causes the same behaviour of another loop iteration].

Coverity issue: 350353
Fixes: 2328542ed8 ("examples/ioat: add rawdev copy mode")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2019-11-26 17:26:08 +01:00
..
bbdev_app examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bond examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
bpf examples/bpf: remove from list of examples to build 2019-10-27 17:23:05 +01:00
cmdline examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
distributor examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ethtool examples/ethtool: build as part of meson build 2019-10-27 17:23:13 +01:00
eventdev_pipeline examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
fips_validation examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
flow_classify examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
flow_filtering examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
helloworld examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ioat examples/ioat: fix possible null dereference 2019-11-26 17:26:08 +01:00
ip_fragmentation examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ip_pipeline examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ip_reassembly examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ipsec-secgw examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
ipv4_multicast examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
kni examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-cat examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-event examples/l2fwd-event: check function errors 2019-11-26 07:49:30 +01:00
l2fwd-jobstats examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l2fwd-keepalive examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l3fwd examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l3fwd-acl examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
l3fwd-power examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
link_status_interrupt examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
multi_process examples/multi_process: fix client crash with sparse ports 2019-11-25 23:52:00 +01:00
ntb mbuf: extend mbuf pool private structure 2019-11-25 22:44:46 +01:00
packet_ordering examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
performance-thread examples/performance-thread: add pthread shim to meson 2019-10-27 17:24:25 +01:00
ptpclient examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
qos_meter examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
qos_sched examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
rxtx_callbacks examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
server_node_efd examples/server_node_efd: add server binary to meson build 2019-10-27 17:25:22 +01:00
service_cores examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
skeleton examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
tep_termination examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
timer examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vdpa examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vhost_blk remove blank lines at end of file 2019-11-26 00:12:08 +01:00
vhost_crypto examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vm_power_manager examples/vm_power: fix no port in guest 2019-11-12 08:26:25 +01:00
vmdq examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
vmdq_dcb examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
Makefile examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00
meson.build examples/vhost_blk: introduce vhost storage sample 2019-11-11 14:23:02 +01:00