diff options
-rw-r--r-- | net/ipv6/route.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 4d70c06f0436..8c5df6f3a2de 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2606,6 +2606,7 @@ static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void | |||
2606 | 2606 | ||
2607 | skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); | 2607 | skb = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); |
2608 | if (!skb) { | 2608 | if (!skb) { |
2609 | dst_release(&rt->dst); | ||
2609 | err = -ENOBUFS; | 2610 | err = -ENOBUFS; |
2610 | goto errout; | 2611 | goto errout; |
2611 | } | 2612 | } |