]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix a regression in tcf_proto_lookup_ops()
authorEric Dumazet <edumazet@google.com>
Fri, 20 Dec 2013 18:04:18 +0000 (10:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2013 22:06:27 +0000 (17:06 -0500)
commit378f2aa604e8d8dd3f8d957f497e831a8d85eddb
treebc7529f7af81514dc4d4e8d5440719e87212e99c
parent987ecf79158c39150535b05062002ef747fdec7a
net_sched: fix a regression in tcf_proto_lookup_ops()

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

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 35df9f7c467b ("net_sched: convert tcf_proto_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/cls_api.c