Staging: hv: check return value of bus_register()

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Bill Pemberton 2009-07-27 16:47:35 -04:00 committed by Greg Kroah-Hartman
parent b2aba7cc71
commit c19fbca307

View file

@ -380,7 +380,12 @@ int vmbus_bus_init(PFN_DRIVERINITIALIZE pfn_drv_init)
tasklet_init(&vmbus_drv_ctx->event_dpc, vmbus_event_dpc, (unsigned long)vmbus_drv_obj);
/* Now, register the bus driver with LDM */
bus_register(&vmbus_drv_ctx->bus);
ret = bus_register(&vmbus_drv_ctx->bus);
if (ret)
{
ret = -1;
goto cleanup;
}
/* Get the interrupt resource */
ret = request_irq(vmbus_irq,