o ipv6/route: fix .dst.metrics struct init for ip6_null_entry

Thanks to Andrew Morton for reporting.
parent d8475074
......@@ -108,7 +108,7 @@ struct rt6_info ip6_null_entry = {
.dev = &loopback_dev,
.obsolete = -1,
.error = -ENETUNREACH,
.metrics[RTAX_HOPLIMIT-1] = 255,
.metrics = { [RTAX_HOPLIMIT - 1] = 255, },
.input = ip6_pkt_discard,
.output = ip6_pkt_discard,
.ops = &ip6_dst_ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment