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

!15112 net_sched: cls_flow: validate TCA_FLOW_RSHIFT attribute

parents 84fc730a 553cfd51
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -356,7 +356,8 @@ static const struct nla_policy flow_policy[TCA_FLOW_MAX + 1] = {
	[TCA_FLOW_KEYS]		= { .type = NLA_U32 },
	[TCA_FLOW_MODE]		= { .type = NLA_U32 },
	[TCA_FLOW_BASECLASS]	= { .type = NLA_U32 },
	[TCA_FLOW_RSHIFT]	= { .type = NLA_U32 },
	[TCA_FLOW_RSHIFT]	= NLA_POLICY_MAX(NLA_U32,
						 31 /* BITS_PER_U32 - 1 */),
	[TCA_FLOW_ADDEND]	= { .type = NLA_U32 },
	[TCA_FLOW_MASK]		= { .type = NLA_U32 },
	[TCA_FLOW_XOR]		= { .type = NLA_U32 },