]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix regression in tc_action_ops
authorEric Dumazet <edumazet@google.com>
Fri, 20 Dec 2013 20:32:32 +0000 (12:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 22:06:27 +0000 (17:06 -0500)
commit8ede2a1ddc60dfdceddbbfcb17b1ee76590f5568
tree37e9f71f8bd584aebc8002dc581d0e28c61d361f
parent378f2aa604e8d8dd3f8d957f497e831a8d85eddb
net_sched: fix regression in tc_action_ops

list_for_each_entry(a, &act_base, head) doesn't
exit with a = NULL if we reached the end of the list.

tcf_unregister_action(), tc_lookup_action_n() and tc_lookup_action()
need fixes.

Remove tc_lookup_action_id() as its unused and not worth 'fixing'

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 995bed45a652 ("net_sched: convert tc_action_ops to use struct list_head")
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c