summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-05-31 18:46:34 +0300
committerDavid S. Miller <davem@davemloft.net>2024-06-05 12:06:00 +0300
commit61e2bbafb00e4b9a5de45e6448a7b6b818658576 (patch)
tree8ded17de35ad06ef9aca2201dd5b1ef93b562e14 /net/ipv6
parentcdbdb3c62af5bc13e6e8a9310470c71c33340d26 (diff)
downloadlinux-61e2bbafb00e4b9a5de45e6448a7b6b818658576.tar.xz
net: remove NULL-pointer net parameter in ip_metrics_convert
When I was doing some experiments, I found that when using the first parameter, namely, struct net, in ip_metrics_convert() always triggers NULL pointer crash. Then I digged into this part, realizing that we can remove this one due to its uselessness. Signed-off-by: Jason Xing <kernelxing@tencent.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index a504b88ec06b..12f647d0fec0 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -3761,7 +3761,7 @@ static struct fib6_info *ip6_route_info_create(struct fib6_config *cfg,
if (!rt)
goto out;
- rt->fib6_metrics = ip_fib_metrics_init(net, cfg->fc_mx, cfg->fc_mx_len,
+ rt->fib6_metrics = ip_fib_metrics_init(cfg->fc_mx, cfg->fc_mx_len,
extack);
if (IS_ERR(rt->fib6_metrics)) {
err = PTR_ERR(rt->fib6_metrics);