aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2018-07-30 14:23:10 +0000
committerDavid S. Miller <[email protected]>2018-07-30 16:45:57 +0000
commitdf18b50448fab1dff093731dfd0e25e77e1afcd1 (patch)
tree0afb2a9351d3d591df033c400255db700d581200 /fs/btrfs/dev-replace.c
parentxen-netfront: wait xenbus state change when load module manually (diff)
downloadkernel-df18b50448fab1dff093731dfd0e25e77e1afcd1.tar.gz
kernel-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions