]> git.hungrycats.org Git - linux/commit
net_sched: copy exts->type in tcf_exts_change()
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 7 Oct 2014 00:21:54 +0000 (17:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2014 10:29:23 +0000 (12:29 +0200)
commit3bc0d3356f30096b610e027a70dcf3445f8c4a38
tree0118688b02d0ace554f295093fee167aac49dcbc
parentf823cda9b841d142930e3de51dfda6cd245a2f83
net_sched: copy exts->type in tcf_exts_change()

[ Upstream commit 5301e3e117d88ef0967ce278912e54757f1a31a2 ]

We need to copy exts->type when committing the change, otherwise
it would be always 0. This is a quick fix for -net and -stable,
for net-next tcf_exts will be removed.

Fixes: commit 33be627159913b094bb578e83 ("net_sched: act: use standard struct list_head")
Reported-by: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/cls_api.c