VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Casey Dahlin <cdahlin@redhat.com> 2009-07-28 12:29:05 -0500 committer: David Teigland <teigland@redhat.com> 2009-08-18 15:09:24 -0500 commit: b5711b8e5a437ca7d35321d19de568b4f76a7739 parent: df4ecf1524c7793de3121b2d4e5fc6bcc0da3bfb
Commit Summary:
dlm: fix double-release of socket in error exit path
Diffstat:
1 file changed, 1 insertion, 3 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 618a60f03886..210d52c48808 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -926,10 +926,8 @@ static void tcp_connect_to_sock(struct connection *con)
 		goto out_err;
 
 	memset(&saddr, 0, sizeof(saddr));
-	if (dlm_nodeid_to_addr(con->nodeid, &saddr)) {
-		sock_release(sock);
+	if (dlm_nodeid_to_addr(con->nodeid, &saddr))
 		goto out_err;
-	}
 
 	sock->sk->sk_user_data = con;
 	con->rx_action = receive_from_sock;