From: K. Y. Srinivasan Date: Sat, 28 Feb 2015 19:18:20 +0000 (-0800) Subject: Drivers: hv: util: On device remove, close the channel after de-initializing the... X-Git-Tag: v4.14-rc1~5524^2~106 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5380b383ba10915e61e3db09341cf8193f0601ad;p=platform%2Fkernel%2Flinux-rpi.git Drivers: hv: util: On device remove, close the channel after de-initializing the service 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 Signed-off-by: Greg Kroah-Hartman --- 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;