mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-linux: Avoid valgrind warning in epoll_ctl() call.
Valgrind points out correctly that there are uninitialized bytes in the 'event' structure. That's OK, but it doesn't hurt to suppress the warning by zeroing all of the bytes. This doesn't fix a real bug. Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1026,6 +1026,7 @@ dpif_linux_recv_set_mask(struct dpif *dpif_, int listen_mask)
|
||||
return error;
|
||||
}
|
||||
|
||||
memset(&event, 0, sizeof event);
|
||||
event.events = EPOLLIN;
|
||||
event.data.u32 = i;
|
||||
if (epoll_ctl(dpif->epoll_fd, EPOLL_CTL_ADD,
|
||||
|
Reference in New Issue
Block a user