summaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2022-03-24 16:22:10 -0300
committerDavid S. Miller <davem@davemloft.net>2022-03-26 17:00:51 -0700
commitbcb74e132a76ce0502bb33d5b65533a4ed72d159 (patch)
treec404b89362a45fc150535ceb98846de1166b1f6d /net/ieee802154
parent5ae6acf1d00be462d7b08b4a8748798ef595ae5a (diff)
downloadlinux-bcb74e132a76ce0502bb33d5b65533a4ed72d159.tar.bz2
net/sched: act_ct: fix ref leak when switching zones
When switching zones or network namespaces without doing a ct clear in between, it is now leaking a reference to the old ct entry. That's because tcf_ct_skb_nfct_cached() returns false and tcf_ct_flow_table_lookup() may simply overwrite it. The fix is to, as the ct entry is not reusable, free it already at tcf_ct_skb_nfct_cached(). Reported-by: Florian Westphal <fw@strlen.de> Fixes: 2f131de361f6 ("net/sched: act_ct: Fix flow table lookup after ct clear or switching zones") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
0 files changed, 0 insertions, 0 deletions