Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65422e25 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ipv6: fix possible mem leaks in ipv6_make_skb()"

parents 8d91fadf 42175dc5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1779,9 +1779,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;