Unverified Commit b1800a08 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8679 rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation

parents e6a54743 2ab51823
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2365,7 +2365,7 @@ static int do_setvfinfo(struct net_device *dev, struct nlattr **tb)

		nla_for_each_nested(attr, tb[IFLA_VF_VLAN_LIST], rem) {
			if (nla_type(attr) != IFLA_VF_VLAN_INFO ||
			    nla_len(attr) < NLA_HDRLEN) {
			    nla_len(attr) < sizeof(struct ifla_vf_vlan_info)) {
				return -EINVAL;
			}
			if (len >= MAX_VLAN_LIST_LEN)