]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size()
authorEric Dumazet <edumazet@google.com>
Tue, 5 Oct 2021 01:05:07 +0000 (18:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 11:39:07 +0000 (12:39 +0100)
commitf495627aef4e554a133d46af5ed3050f804e84d6
tree57d1152f24912b9c29e053dbef0cdb0af4886f46
parent71bd29a6eadad6e413f3bf84db5c7c66e51ffe7b
net: bridge: use nla_total_size_64bit() in br_get_linkxstats_size()

bridge_fill_linkxstats() is using nla_reserve_64bit().

We must use nla_total_size_64bit() instead of nla_total_size()
for corresponding data structure.

Fixes: 6774caed7674 ("net: bridge: add support for IGMP/MLD stats and export them via netlink")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Nikolay Aleksandrov <nikolay@nvidia.com>
Cc: Vivien Didelot <vivien.didelot@gmail.com>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c