diff options
author | Sumit Semwal <sumit.semwal@linaro.org> | 2018-01-17 17:42:22 +0530 |
---|---|---|
committer | Sumit Semwal <sumit.semwal@linaro.org> | 2018-01-17 17:42:22 +0530 |
commit | 8a848eb9e2cb9e8ac72484de6477c0a748d294b0 (patch) | |
tree | 688519f5af4dd7c17877b9c344bb8f01d88f98ed /net/ipv6/ip6_output.c | |
parent | d09a3b11141326b583eaf31fd40e12ac3e8377e6 (diff) | |
parent | 42375c1120d5c90d7469ba264fb124f728b1a4f7 (diff) |
Merge remote-tracking branch 'stable/linux-4.4.y' into lts-4.4.y-hikey4.4.112-hikey
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 1b4f5f2d2929..b809958f7388 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1785,8 +1785,10 @@ struct sk_buff *ip6_make_skb(struct sock *sk, cork.base.opt = NULL; v6_cork.opt = NULL; err = ip6_setup_cork(sk, &cork, &v6_cork, hlimit, tclass, opt, rt, fl6); - if (err) + if (err) { + ip6_cork_release(&cork, &v6_cork); return ERR_PTR(err); + } if (dontfrag < 0) dontfrag = inet6_sk(sk)->dontfrag; |