projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Drivers: hv: util: On device remove, close the channel after de-initializing the...
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
hv
/
hv_util.c
diff --git
a/drivers/hv/hv_util.c
b/drivers/hv/hv_util.c
index c5be7737559f031f93a76c1aa45055cc515e7f07..7994ec2e4151b085bbcb596d8ddbd4d8765b939e 100644
(file)
--- 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;