mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 20:26:25 +00:00
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:
parent
b2aba7cc71
commit
c19fbca307
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue