Messages in this thread Patch in this message | | | From | "K. Y. Srinivasan" <> | Subject | [PATCH V2 5/6] Drivers: hv: util: On device remove, close the channel after de-initializing the service | Date | Sat, 28 Feb 2015 11:18:20 -0800 |
| |
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> --- drivers/hv/hv_util.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index c5be773..7994ec2 100644 --- a/drivers/hv/hv_util.c +++ b/drivers/hv/hv_util.c @@ -380,9 +380,9 @@ static int util_remove(struct hv_device *dev) { struct hv_util_service *srv = hv_get_drvdata(dev); - vmbus_close(dev->channel); if (srv->util_deinit) srv->util_deinit(); + vmbus_close(dev->channel); kfree(srv->recv_buffer); return 0; -- 1.7.4.1
| |