diff options
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 70d9659fc1e9..05eb7bc36156 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2378,6 +2378,7 @@ out: | |||
2378 | static int ip6_convert_metrics(struct mx6_config *mxc, | 2378 | static int ip6_convert_metrics(struct mx6_config *mxc, |
2379 | const struct fib6_config *cfg) | 2379 | const struct fib6_config *cfg) |
2380 | { | 2380 | { |
2381 | struct net *net = cfg->fc_nlinfo.nl_net; | ||
2381 | bool ecn_ca = false; | 2382 | bool ecn_ca = false; |
2382 | struct nlattr *nla; | 2383 | struct nlattr *nla; |
2383 | int remaining; | 2384 | int remaining; |
@@ -2403,7 +2404,7 @@ static int ip6_convert_metrics(struct mx6_config *mxc, | |||
2403 | char tmp[TCP_CA_NAME_MAX]; | 2404 | char tmp[TCP_CA_NAME_MAX]; |
2404 | 2405 | ||
2405 | nla_strlcpy(tmp, nla, sizeof(tmp)); | 2406 | nla_strlcpy(tmp, nla, sizeof(tmp)); |
2406 | val = tcp_ca_get_key_by_name(tmp, &ecn_ca); | 2407 | val = tcp_ca_get_key_by_name(net, tmp, &ecn_ca); |
2407 | if (val == TCP_CA_UNSPEC) | 2408 | if (val == TCP_CA_UNSPEC) |
2408 | goto err; | 2409 | goto err; |
2409 | } else { | 2410 | } else { |