From: Jiri Pirko <j...@resnulli.us> Date: Fri, 8 Dec 2017 19:27:27 +0100
> From: Jiri Pirko <j...@mellanox.com> > > Since the block is freed with last chain being put, once we reach the > end of iteration of list_for_each_entry_safe, the block may be > already freed. I'm hitting this only by creating and deleting clsact: ... > Fix this by holding the block also by chain 0 and put chain 0 > explicitly, out of the list_for_each_entry_safe loop at the very > end of tcf_block_put_ext. > > Fixes: efbf78973978 ("net_sched: get rid of rcu_barrier() in > tcf_block_put_ext()") > Signed-off-by: Jiri Pirko <j...@mellanox.com> Applied, thanks Jiri.