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>
This commit is contained in:
K. Y. Srinivasan 2013-09-04 15:41:58 -07:00 коммит произвёл Greg Kroah-Hartman
Родитель 3a4916050b
Коммит 8bbf9f440f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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