mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
netdev-linux: Initialize rx_compressed, tx_compressed when converting.
rtnl_link_stats64 has rx_compressed and tx_compressed members that struct netdev_stats lacks, so we need to initialize them to zero when converting. Found by valgrind.
This commit is contained in:
@@ -3976,6 +3976,8 @@ netdev_stats_to_rtnl_link_stats64(struct rtnl_link_stats64 *dst,
|
||||
const struct netdev_stats *src)
|
||||
{
|
||||
COPY_NETDEV_STATS;
|
||||
dst->rx_compressed = 0;
|
||||
dst->tx_compressed = 0;
|
||||
}
|
||||
|
||||
/* Utility functions. */
|
||||
|
Reference in New Issue
Block a user