On 12/20/17 3:28 AM, Ido Schimmel wrote: > @@ -4327,6 +4321,15 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, > struct nlmsghdr *nlh, > goto errout; > } > > + if (fibmatch && rt->dst.from) { > + struct rt6_info *ort = container_of(rt->dst.from, > + struct rt6_info, dst); > + > + dst_hold(&ort->dst); > + ip6_rt_put(rt); > + rt = ort; > + } > + > skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); > if (!skb) { > ip6_rt_put(rt); >
That's going to need a fixup on the net-next merge -- from was moved from dst to rt6_info. Change wise it looks ok to me. Acked-by: David Ahern <dsah...@gmail.com>