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-06-12 16:19:22 -07:00
2018-07-09 18:04:12 +02:00
2018-05-22 10:51:09 +02:00
2018-07-23 11:19:02 -07:00
2018-03-27 13:18:09 -04:00
2018-06-28 10:40:47 -07:00
2017-11-15 11:56:19 -08:00
2018-06-06 18:39:49 -07:00
2018-07-05 20:15:26 +09:00
2018-07-24 16:35:58 -07:00
2018-02-27 10:46:01 +01:00
2018-06-27 17:32:11 +02:00
2018-05-07 23:50:27 -04:00
2015-09-02 15:31:00 -07:00
2018-07-05 20:15:26 +09:00
2017-09-01 20:33:42 -07:00
2018-05-11 00:10:56 +02:00
2017-05-21 13:42:36 -04:00
2018-07-21 19:31:46 -07:00
2017-01-28 10:33:06 -05:00
2018-06-20 08:03:06 +09:00
2018-02-16 15:57:42 -05:00
2018-07-30 09:45:57 -07:00
2018-05-16 07:24:30 +02:00
2018-07-16 13:39:47 -07:00
2017-11-02 11:10:55 +01:00
2018-04-17 13:39:51 -04:00
2018-04-26 15:07:42 -04:00
2016-04-07 16:53:29 -04:00
2018-07-23 11:39:30 -07:00
2018-06-01 13:56:30 -04:00
2016-11-02 15:18:36 -04:00
2018-06-07 09:31:42 +02:00
2018-06-06 18:39:49 -07:00
2016-11-04 14:45:23 -04:00
2018-07-16 11:20:06 -07:00
2018-07-18 10:22:37 -07:00
2017-11-02 11:10:55 +01:00
2015-08-13 17:08:39 -07:00
2018-07-21 22:58:17 -07:00
2016-12-25 17:21:23 +01:00
2018-07-16 13:45:16 -07:00
2018-02-25 20:51:13 +01:00
2017-11-24 01:37:35 +09:00
2018-05-16 07:24:30 +02:00
2018-05-16 07:24:30 +02:00
2017-03-24 13:17:07 -07:00
2018-06-28 10:40:47 -07:00
2018-04-18 23:19:39 -04:00
2018-07-23 11:19:02 -07:00
2018-07-02 20:36:37 +09:00
2018-07-18 15:10:47 -07:00
2018-05-24 11:57:36 +02:00
2018-05-29 09:53:38 -04:00
2018-06-01 13:56:30 -04:00
2018-03-25 20:53:54 -04:00
2018-04-25 13:02:15 -04:00
2018-07-21 19:31:46 -07:00
2018-01-22 16:01:30 -05:00
2015-11-03 10:52:13 -05:00
2017-11-02 11:10:55 +01:00
2018-05-08 22:30:06 -04:00
2018-06-08 19:55:15 -04:00
2018-05-16 07:24:30 +02:00
2017-12-19 08:23:21 +01:00
2017-06-16 11:48:39 -04:00
2017-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2018-03-07 10:54:29 +01:00
2018-03-04 17:49:17 -05:00
2018-06-03 09:31:58 -04:00
2017-02-09 10:22:17 +01:00
2018-04-26 07:51:48 +02:00
2018-04-16 07:50:09 +02:00