diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index c5be7737559f031f93a76c1aa45055cc515e7f07..7994ec2e4151b085bbcb596d8ddbd4d8765b939e 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;