Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

K. Y. Srinivasan and committed by
Greg Kroah-Hartman
8bbf9f44 3a491605

+1 -1
+1 -1
drivers/hv/connection.c
··· 195 195 196 196 do { 197 197 ret = vmbus_negotiate_version(msginfo, version); 198 - if (ret) 198 + if (ret == -ETIMEDOUT) 199 199 goto cleanup; 200 200 201 201 if (vmbus_connection.conn_state == CONNECTED)