Skip to content

Commit

Permalink
Drivers: hv: vmbus: Terminate vmbus version negotiation on timeout
Browse files Browse the repository at this point in the history
commit 666b9ad terminated vmbus
version negotiation incorrectly. We need to terminate the version
negotiation only if the current negotiation were to timeout.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Olaf Hering <ohering@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 26, 2013
1 parent 3a49160 commit 8bbf9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ int vmbus_connect(void)

do {
ret = vmbus_negotiate_version(msginfo, version);
if (ret)
if (ret == -ETIMEDOUT)
goto cleanup;

if (vmbus_connection.conn_state == CONNECTED)
Expand Down

0 comments on commit 8bbf9f4

Please sign in to comment.