summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/ChannelMgmt.c
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2009-11-20 16:29:17 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-01 00:39:29 (GMT)
commit5996b3ddc422a16d53b8acf4980d0d6e8b2bf1ed (patch)
tree62f9898be6346988e33d2fb85b1b126accb3b5fb /drivers/staging/hv/ChannelMgmt.c
parent8c960e49d8beaca7c5b3967cede225bbba36bf43 (diff)
downloadlinux-fsl-qoriq-5996b3ddc422a16d53b8acf4980d0d6e8b2bf1ed.tar.xz
Staging: hv: Fix vmbus event handler bug
The flag ENABLE_POLLING is always enabled in original Makefile, but accidently removed during porting to mainline kernel. The patch fixes this bug which can cause stalled network communication. Credit needs to go to Eric Sesterhenn <eric.sesterhenn@lsexperts.de> For pointing out a typo in the original code as well. Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/ChannelMgmt.c')
-rw-r--r--drivers/staging/hv/ChannelMgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/ChannelMgmt.c b/drivers/staging/hv/ChannelMgmt.c
index 3db62ca..ef38467 100644
--- a/drivers/staging/hv/ChannelMgmt.c
+++ b/drivers/staging/hv/ChannelMgmt.c
@@ -119,7 +119,7 @@ static inline void ReleaseVmbusChannel(void *context)
*/
void FreeVmbusChannel(struct vmbus_channel *Channel)
{
- del_timer(&Channel->poll_timer);
+ del_timer_sync(&Channel->poll_timer);
/*
* We have to release the channel's workqueue/thread in the vmbus's