pkt_sched: pedit use proper struct
authorjamal <hadi@cyberus.ca>
Sun, 11 Oct 2009 04:21:38 +0000 (04:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Oct 2009 06:03:47 +0000 (23:03 -0700)
This probably deserves to go into -stable.

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

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c

index 96c0ed115e2a07d6b8ff7afe86632e03fb4174b9..6b0359a500e603510cf30f1a66767dcb3f62b42c 100644 (file)
@@ -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,