diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index dea3f9264250..705eccfb4769 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3033,7 +3033,7 @@ int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb) | |||
3033 | continue; | 3033 | continue; |
3034 | if (rt_is_expired(rt)) | 3034 | if (rt_is_expired(rt)) |
3035 | continue; | 3035 | continue; |
3036 | skb_dst_set(skb, dst_clone(&rt->u.dst)); | 3036 | skb_dst_set_noref(skb, &rt->u.dst); |
3037 | if (rt_fill_info(net, skb, NETLINK_CB(cb->skb).pid, | 3037 | if (rt_fill_info(net, skb, NETLINK_CB(cb->skb).pid, |
3038 | cb->nlh->nlmsg_seq, RTM_NEWROUTE, | 3038 | cb->nlh->nlmsg_seq, RTM_NEWROUTE, |
3039 | 1, NLM_F_MULTI) <= 0) { | 3039 | 1, NLM_F_MULTI) <= 0) { |