numam-dpdk/lib/librte_kni
Thomas Monjalon a17842c142 kni: fix possible uninitialized variable
This error can be raised:
	lib/librte_kni/rte_kni.c:531:15: error:
	'req' may be used uninitialized in this function

It should not happen because kni_fifo_get() would return 0 if
req is not initialized, so the function would return before using req.
But GCC complains about it in -O1 optimization,
and a NULL initialization is harmless here.

Fixes: 3fc5ca2f63 ("kni: initial import")
Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-11-23 01:43:35 +01:00
..
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build kni: disable for 32-bit meson builds 2018-07-12 12:24:01 +02:00
rte_kni_fifo.h kni: introduce C11 atomic into FIFO synchronization 2018-10-26 18:10:14 +02:00
rte_kni_version.map kni: add function to set link state on kernel interface 2018-10-26 19:46:15 +02:00
rte_kni.c kni: fix possible uninitialized variable 2018-11-23 01:43:35 +01:00
rte_kni.h kni: add function to set link state on kernel interface 2018-10-26 19:46:15 +02:00