]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_tunnel_key: Fix double free dst_cache
authorwenxu <wenxu@ucloud.cn>
Tue, 5 Mar 2019 00:29:28 +0000 (08:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Mar 2019 20:57:28 +0000 (12:57 -0800)
commit6213acce8fc252ff14e2dcfb08711e1e3fd0f44e
tree5697827c558a8752762be67a4934be5d2345a07e
parentaa5ebf367c5fc9b21889f7246babcc833d59dc3b
net/sched: act_tunnel_key: Fix double free dst_cache

dst_cache_destroy will be called in dst_release

dst_release-->dst_destroy_rcu-->dst_destroy-->metadata_dst_free
-->dst_cache_destroy

It should not call dst_cache_destroy before dst_release

Fixes: 907dfb4efbbf ("net/sched: act_tunnel_key: Add dst_cache support")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_tunnel_key.c