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

Drivers: hv: util: On device remove, close the channel after de-initializing the service

When the offer is rescinded, vmbus_close() can free up the channel;
deinitialize the service before closing the channel.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

K. Y. Srinivasan and committed by
Greg Kroah-Hartman
5380b383 5b1e5b53

+1 -1
+1 -1
drivers/hv/hv_util.c
··· 380 380 { 381 381 struct hv_util_service *srv = hv_get_drvdata(dev); 382 382 383 - vmbus_close(dev->channel); 384 383 if (srv->util_deinit) 385 384 srv->util_deinit(); 385 + vmbus_close(dev->channel); 386 386 kfree(srv->recv_buffer); 387 387 388 388 return 0;