commit | d744318574090c3b796915d9d710bdb17db191a1 | [log] [tgz] |
---|---|---|
author | WANG Cong <xiyou.wangcong@gmail.com> | Tue May 05 15:22:02 2015 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat May 09 16:14:04 2015 -0400 |
tree | 86814b3ab96984332dc666650a574e835008516c | |
parent | 1006da19ea6603135773a79f09e4e931be460429 [diff] |
net_sched: fix a use-after-free in tc_ctl_tfilter() When tcf_destroy() returns true, tp could be already destroyed, we should not use tp->next after that. For long term, we probably should move tp list to list_head. Fixes: 1e052be69d04 ("net_sched: destroy proto tp when all filters are gone") Cc: Jamal Hadi Salim <jhs@mojatatu.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>