diff options
author | Denys Drozdov <denys.drozdov@toradex.com> | 2021-11-08 13:55:11 +0200 |
---|---|---|
committer | Denys Drozdov <denys.drozdov@toradex.com> | 2021-11-08 13:55:11 +0200 |
commit | 50d0d350e8533a792d543e62d8443f4d34757ab1 (patch) | |
tree | fa52052a3dbd3d5e8a57a19ae82f8f40aded8b3b /net/core | |
parent | b101fdeb4c9fc20ffae06e425649ccfcc1062e22 (diff) | |
parent | 940a14a7d844386c72f449045080dbbd86d1d244 (diff) |
Merge tag 'v5.4.153' into 5.4-2.3.x-imx
This is the 5.4.153 stable release
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 6fbc9cb09dc0..a53b101ce41a 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -4950,7 +4950,7 @@ nla_put_failure: static size_t if_nlmsg_stats_size(const struct net_device *dev, u32 filter_mask) { - size_t size = 0; + size_t size = NLMSG_ALIGN(sizeof(struct if_stats_msg)); if (stats_attr_valid(filter_mask, IFLA_STATS_LINK_64, 0)) size += nla_total_size_64bit(sizeof(struct rtnl_link_stats64)); |