Skip to content

Commit

Permalink
eal/linux: fix uninitialized data valgrind warning
Browse files Browse the repository at this point in the history
[ upstream commit e0ab802 ]

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: af75078 ("first public release")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
shemminger authored and kevintraynor committed Feb 7, 2020
1 parent 5ecab53 commit 5febee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/librte_eal/linuxapp/eal/eal_interrupts.c
Expand Up @@ -964,7 +964,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 (;;) {
Expand Down

0 comments on commit 5febee7

Please sign in to comment.