Commit c19fbca3 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: hv: check return value of bus_register()

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b2aba7cc
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment