]> 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)
commitfa340df197320793b81cc125c0a96fac346440b9
tree5697827c558a8752762be67a4934be5d2345a07e
parent1f4cea0645bfa2c6b584ba7932a5caf278d3d090
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: 67d9e721e541 ("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