mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-02-04 00:05:01 +00:00
pkt_sched: pedit use proper struct
[ Upstream commit 53f7e35f8b7fc2f5620a863ac613bcf3080cb6ba ] 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e09fa91976
commit
fb97d3d0b3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user