aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hv/hv_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hv/hv_util.c')
-rw-r--r--drivers/hv/hv_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index c5be7737559f..7994ec2e4151 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)
380{ 380{
381 struct hv_util_service *srv = hv_get_drvdata(dev); 381 struct hv_util_service *srv = hv_get_drvdata(dev);
382 382
383 vmbus_close(dev->channel);
384 if (srv->util_deinit) 383 if (srv->util_deinit)
385 srv->util_deinit(); 384 srv->util_deinit();
385 vmbus_close(dev->channel);
386 kfree(srv->recv_buffer); 386 kfree(srv->recv_buffer);
387 387
388 return 0; 388 return 0;