Message ID | 1301946910-5530-1-git-send-email-ostr@amd64.org |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Boris Ostrovsky <ostr@amd64.org> Date: Mon, 4 Apr 2011 15:55:10 -0400 > From: Boris Ostrovsky <boris.ostrovsky@amd.com> > > Make sure dst_release() is not called with error pointer. This is > similar to commit 4910ac6c526d2868adcb5893e0c428473de862b5. > > Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com> Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 2b0c186..56fa125 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -503,6 +503,7 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req, dst = ip6_dst_lookup_flow(sk, &fl6, final_p, false); if (IS_ERR(dst)) { err = PTR_ERR(dst); + dst = NULL; goto done; } skb = tcp_make_synack(sk, dst, req, rvp);