mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 20:30:25 +01:00
platform/vlan: fix incorrect type for ingress/egress qos mappings
The kernel was updated to add stricter validation to netlink messages, which revealed this bug: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c21660fe221a15c789dee2bc2fd95516bc5aeaf Fixes:a5ea141956('platform/vlan: add support for ingress/egress-qos-mappings and changing flags') (cherry picked from commit84bcc0eab9) (cherry picked from commitc8943b758d)
This commit is contained in:
parent
26cc879508
commit
6dad779be1
1 changed files with 2 additions and 2 deletions
|
|
@ -5413,7 +5413,7 @@ _nl_msg_new_link_set_linkinfo_vlan(struct nl_msg *msg,
|
|||
if (!(qos = nla_nest_start(msg, IFLA_VLAN_INGRESS_QOS)))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
NLA_PUT(msg, i, sizeof(ingress_qos[i]), &ingress_qos[i]);
|
||||
NLA_PUT(msg, IFLA_VLAN_QOS_MAPPING, sizeof(ingress_qos[i]), &ingress_qos[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5430,7 +5430,7 @@ _nl_msg_new_link_set_linkinfo_vlan(struct nl_msg *msg,
|
|||
if (!(qos = nla_nest_start(msg, IFLA_VLAN_EGRESS_QOS)))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
NLA_PUT(msg, i, sizeof(egress_qos[i]), &egress_qos[i]);
|
||||
NLA_PUT(msg, IFLA_VLAN_QOS_MAPPING, sizeof(egress_qos[i]), &egress_qos[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue