]> 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)
commit4177c5d94264b57f426ef5c45a788808d1a1e536
tree5697827c558a8752762be67a4934be5d2345a07e
parent0e63208915a8d7590d0a6218dadb2a6a00ac705a
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: 41411e2fd6b8 ("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