1
0
Fork 0

Drivers: hv: vmbus: Terminate vmbus version negotiation on timeout

commit 666b9adc80 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>
hifive-unleashed-5.1
K. Y. Srinivasan 2013-09-04 15:41:58 -07:00 committed by Greg Kroah-Hartman
parent 3a4916050b
commit 8bbf9f440f
1 changed files with 1 additions and 1 deletions

View File

@ -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)