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>
Thu, 12 Jan 2012 19:29:32 +0000 (11:29 -0800)
commit32eef9ed02e483cb39d0d70316ba35a5d4920b6b
tree950a35b40edab2abe1335e312ce1003e50a5998c
parent0558681f027b24a134e24fee2d96a0a1c6174c76
drivers: hv: Don't OOPS when you cannot init vmbus

commit cf6a2eacbcb2593b5b91d0817915c4f0464bb534 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hv/vmbus_drv.c