From: Stephen Hemminger Date: Wed, 27 Nov 2019 22:32:32 +0000 (-0800) Subject: eal/linux: fix uninitialized data valgrind warning X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e0ab8020ac2a;p=dpdk.git eal/linux: fix uninitialized data valgrind warning Valgrind reports that eal interrupt thread is calling epoll_ctl with uninitialized data. This is a false positive, because the kernel is not going to care about the unused bits in the union but trivial to fix by initializing it. Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Acked-by: David Marchand --- diff --git a/lib/librte_eal/linux/eal/eal_interrupts.c b/lib/librte_eal/linux/eal/eal_interrupts.c index 1955324d30..2cd537ba44 100644 --- a/lib/librte_eal/linux/eal/eal_interrupts.c +++ b/lib/librte_eal/linux/eal/eal_interrupts.c @@ -1045,7 +1045,7 @@ eal_intr_handle_interrupts(int pfd, unsigned totalfds) static __attribute__((noreturn)) void * eal_intr_thread_main(__rte_unused void *arg) { - struct epoll_event ev; + struct epoll_event ev = { }; /* host thread, never break out */ for (;;) {