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: af75078fec
("first public release")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
d51827a981
commit
e0ab8020ac
@ -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 (;;) {
|
||||
|
Loading…
Reference in New Issue
Block a user