WANG Cong d744318574 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>
2015-05-09 16:14:04 -04:00
..
2015-04-18 17:45:30 -04:00
2015-03-02 16:43:41 -05:00
2015-04-02 14:05:00 -04:00
2015-03-06 21:50:02 -05:00
2015-03-31 13:58:35 -04:00
2015-05-03 23:27:02 -04:00
2015-03-02 16:43:41 -05:00
2015-04-13 16:35:16 -04:00
2015-03-02 16:43:41 -05:00
2015-04-11 15:53:35 -04:00
2015-04-26 17:33:59 -07:00
2014-10-07 20:28:44 -04:00
2015-04-15 15:06:56 -04:00