Message ID | 20220110071814.835570848@linuxfoundation.org |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9ae48a20c3207..008ebda35ed22 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -3367,8 +3367,10 @@ static int ip6_route_multipath_del(struct fib6_config *cfg, if (nla) { err = fib6_gw_from_attr(&r_cfg.fc_gateway, nla, extack); - if (err) - return err; + if (err) { + last_err = err; + goto next_rtnh; + } r_cfg.fc_flags |= RTF_GATEWAY; } @@ -3377,6 +3379,7 @@ static int ip6_route_multipath_del(struct fib6_config *cfg, if (err) last_err = err; +next_rtnh: rtnh = rtnh_next(rtnh, &remaining); }