]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
staging: hv: Fix race condition on vmbus channel initialization
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 28 May 2010 23:22:44 +0000 (23:22 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Jun 2010 15:18:14 +0000 (08:18 -0700)
There is a possible race condition when hv_utils starts to load immediately
after hv_vmbus is loading - null pointer error could happen.
This patch added wait/completion to ensure all channels are ready before
vmbus loading completes. So another module won't have any uninitialized channel.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found