Skip to content

Commit

Permalink
pkt_sched: pedit use proper struct
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
jamal authored and davem330 committed Oct 12, 2009
1 parent d1f6803 commit 53f7e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sched/act_pedit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53f7e35

Please sign in to comment.