projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1e5b5
)
Drivers: hv: util: On device remove, close the channel after de-initializing the...
author
K. Y. Srinivasan
<kys@microsoft.com>
Sat, 28 Feb 2015 19:18:20 +0000
(11:18 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 03:31:02 +0000
(19:31 -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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_util.c
patch
|
blob
|
blame
|
history
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;