ipv4: route: restore skb_dst_set in inet_rtm_getroute
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Thu, 1 Jun 2017 05:53:25 +0000 (22:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 15:30:41 +0000 (11:30 -0400)
commitba52d61e0ffbb8538d5f07071d38a78afb920176
tree31500fe3f17a83516f0c40354bde6bf6e35304e5
parenta5e2ee5da47412c98b023acb49d0787e40e4ec6a
ipv4: route: restore skb_dst_set in inet_rtm_getroute

recent updates to inet_rtm_getroute dropped skb_dst_set in
inet_rtm_getroute. This patch restores it because it is
needed to release the dst correctly.

Fixes: 3765d35ed8b9 ("net: ipv4: Convert inet_rtm_getroute to rcu versions of route lookup")
Reported-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c