diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 09:46:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-28 09:46:00 -0700 |
commit | 3988ba0708e98b4bafc9034aa476775520bee708 (patch) | |
tree | 8c706018fef444bc16b33fa8208e78cabf993a1f /fs/dlm/lowcomms.c | |
parent | d9089c296bdd82e6c1b7f82d04c11b5decde75e7 (diff) | |
parent | 18c60c0a3b16fc7d6a55497a228602ad8509f838 (diff) | |
download | op-kernel-dev-3988ba0708e98b4bafc9034aa476775520bee708.zip op-kernel-dev-3988ba0708e98b4bafc9034aa476775520bee708.tar.gz |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm:
dlm: fix uninitialized variable for search_rsb_list callers
dlm: release socket on error
dlm: fix basts for granted CW waiting PR/CW
dlm: check for null in device_write
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r-- | fs/dlm/lowcomms.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 637018c..3962262 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -891,8 +891,10 @@ 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)) + if (dlm_nodeid_to_addr(con->nodeid, &saddr)) { + sock_release(sock); goto out_err; + } sock->sk->sk_user_data = con; con->rx_action = receive_from_sock; |