Sabrina Dubroca df18b50448 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>
2018-07-30 09:45:57 -07:00
..
2018-03-27 13:18:09 -04:00
2018-05-11 00:10:56 +02:00
2017-05-21 13:42:36 -04:00
2018-07-30 09:45:57 -07:00
2018-04-26 15:07:42 -04:00
2018-07-23 11:39:30 -07:00
2018-07-18 10:22:37 -07:00
2016-12-25 17:21:23 +01:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2015-11-03 10:52:13 -05:00