Message ID | 1587618822-13544-1-git-send-email-xiyuyang19@fudan.edu.cn |
---|---|
State | New |
Headers | show |
Series | [1/2] net/x25: Fix x25_neigh refcnt leak when x25_connect() fails | expand |
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index d5b09bbff375..e6571c56209b 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -816,7 +816,7 @@ static int x25_connect(struct socket *sock, struct sockaddr *uaddr, /* Now the loop */ rc = -EINPROGRESS; if (sk->sk_state != TCP_ESTABLISHED && (flags & O_NONBLOCK)) - goto out; + goto out_put_neigh; rc = x25_wait_for_connection_establishment(sk); if (rc)