Skip to contentSkip to conversation

pkt_sched: pedit use proper struct

PATCH Applied jamal 2 participants 2 messages Oct 11, 2009 – Oct 12, 2009

Subsystems (3)
lore
Share & tools
lore

jamal

author
#0 lore raw

PATCH 1/1 pkt_sched: pedit use proper struct

This probably deserves to go into -stable.

cheers,
jamal

commit 6debfdb8e600da8216399d182d6e52f1629c6b22

Author: Jamal Hadi Salim <[email protected]>
Date:   Sun Oct 11 10:07:03 2009 -0400

[PATCH] pkt_sched: pedit use proper struct

Pedit will reject a policy that is large because it uses the wrong structure in the policy validation. This fixes it.

net/sched/act_pedit.c +1 -1
index 96c0ed1..6b0359a 100644
@@ -34,7 +34,7 @@ static struct tcf_hashinfo pedit_hash_info = {
 };
 
 static const struct nla_policy pedit_policy[TCA_PEDIT_MAX + 1] = {
-	[TCA_PEDIT_PARMS]	= { .len = sizeof(struct tcf_pedit) },
+	[TCA_PEDIT_PARMS]	= { .len = sizeof(struct tc_pedit) },
 };
 
 static int tcf_pedit_init(struct nlattr *nla, struct nlattr *est,
maintainer Applied
#1 lore raw

From: jamal <[email protected]>
Date: Sun, 11 Oct 2009 10:21:38 -0400

Quoted 1 line

This probably deserves to go into -stable.

Applied, thanks Jamal, I'll queue this up for -stable.