From: K. Y. Srinivasan <kys@microsoft.com> Date: Wed, 4 Sep 2013 22:41:58 +0000 (-0700) Subject: Drivers: hv: vmbus: Terminate vmbus version negotiation on timeout X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8bbf9f440f196ee08cc5ab1c19e62b1c5a736ff0;p=linux.git Drivers: hv: vmbus: Terminate vmbus version negotiation on timeout commit 666b9adc801ef012612c4e43e0f44b2cdc1979cf 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> --- diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 8f4743ab5fb27..936093e0271e3 100644 --- a/drivers/hv/connection.c +++ b/drivers/hv/connection.c @@ -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)