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

!8681 rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation

parents 2d8c9961 2c0cb806
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2167,7 +2167,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)