Drivers:hv: Fix a bug in vmbus_driver_unregister()
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 27 Dec 2011 21:49:37 +0000 (13:49 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:29:33 +0000 (11:29 -0800)
commitd1883e7052eeffca3f42922bb31fa44d0992c6a6
tree3097dbf50de1c49dea2b2cb608b123a5c5954bc2
parent32eef9ed02e483cb39d0d70316ba35a5d4920b6b
Drivers:hv: Fix a bug in vmbus_driver_unregister()

commit 8f257a142fc3868d69de3f996b95d7bdbc509560 upstream.

The function vmbus_exists() was introduced recently to deal with cases where
the vmbus driver failed to initialize and yet other Hyper-V drivers attempted
to register with the vmbus bus driver. This patch introduced a bug where
vmbus_driver_unregister() would fail to unregister the driver. This patch
fixes the problem.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Fuzhou Chen <fuzhouch@microsoft.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hv/vmbus_drv.c