]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pkt_sched: Fix sch_sfq vs tcf_bind_filter oops
authorJarek Poplawski <jarkao2@gmail.com>
Fri, 6 Aug 2010 00:22:35 +0000 (00:22 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 26 Aug 2010 23:46:00 +0000 (16:46 -0700)
commit0ff3da3bc0827cbc60d9ef37ac26d72814125fa6
tree12d6db47b3b309fb3a03f6730b8b32ceed57110b
parent4c0ef2f2c0ef4245486124b84ba0ec9a2b4b3899
pkt_sched: Fix sch_sfq vs tcf_bind_filter oops

[ Upstream commit eb4a5527b1f0d581ac217c80ef3278ed5e38693c ]

Since there was added ->tcf_chain() method without ->bind_tcf() to
sch_sfq class options, there is oops when a filter is added with
the classid parameter.

Fixes commit 7d2681a6ff4f9ab5e48d02550b4c6338f1638998
netdev thread: null pointer at cls_api.c

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Reported-by: Franchoze Eric <franchoze@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/sch_sfq.c