diff options
author | Sabrina Dubroca <sd@queasysnail.net> | 2018-07-30 16:23:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-30 09:45:57 -0700 |
commit | df18b50448fab1dff093731dfd0e25e77e1afcd1 (patch) | |
tree | 0afb2a9351d3d591df033c400255db700d581200 /net/Kconfig | |
parent | 822fb18a82abaf4ee7058793d95d340f5dab7bfc (diff) | |
download | linux-df18b50448fab1dff093731dfd0e25e77e1afcd1.tar.gz linux-df18b50448fab1dff093731dfd0e25e77e1afcd1.tar.bz2 linux-df18b50448fab1dff093731dfd0e25e77e1afcd1.zip |
net/ipv6: fix metrics leak
Since commit d4ead6b34b67 ("net/ipv6: move metrics from dst to
rt6_info"), ipv6 metrics are shared and refcounted. rt6_set_from()
assigns the rt->from pointer and increases the refcount on from's
metrics. This reference is never released.
Introduce the fib6_metrics_release() helper and use it to release the
metrics.
Fixes: d4ead6b34b67 ("net/ipv6: move metrics from dst to rt6_info")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/Kconfig')
0 files changed, 0 insertions, 0 deletions