X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=net%2F8021q%2Fvlan_netlink.c;h=c7e634af85165613822074b28ceeca4af7153ae7;hb=61317c51e2aeb63a8040e1758c65c5b09e374ac2;hp=309129732285fd610159446bade5ede27c835d1c;hpb=645a992934c8007fa17ac2e512ce73c100ed1614;p=karo-tx-linux.git diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c index 309129732285..c7e634af8516 100644 --- a/net/8021q/vlan_netlink.c +++ b/net/8021q/vlan_netlink.c @@ -171,7 +171,7 @@ static size_t vlan_get_size(const struct net_device *dev) return nla_total_size(2) + /* IFLA_VLAN_PROTOCOL */ nla_total_size(2) + /* IFLA_VLAN_ID */ - sizeof(struct ifla_vlan_flags) + /* IFLA_VLAN_FLAGS */ + nla_total_size(sizeof(struct ifla_vlan_flags)) + /* IFLA_VLAN_FLAGS */ vlan_qos_map_size(vlan->nr_ingress_mappings) + vlan_qos_map_size(vlan->nr_egress_mappings); }