drivers: hv: Don't OOPS when you cannot init vmbus
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 1 Dec 2011 17:59:34 +0000 (09:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 00:23:49 +0000 (16:23 -0800)
commitcf6a2eacbcb2593b5b91d0817915c4f0464bb534
tree720c96644b6d60ce2b8db2c52cb80591421e1b82
parentd2554f50df9be3c53a13f7541a5f4d054bd56cc3
drivers: hv: Don't OOPS when you cannot init vmbus

The hv vmbus driver was causing an OOPS since it was trying to register drivers
on top of the bus even if initialization of the bus has failed for some
reason (such as the odd chance someone would run a hv enabled kernel in a
non-hv environment).

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