diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-27 16:47:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:50 -0700 |
commit | c19fbca307c19bd0d49e86b9417613c90eb9de95 (patch) | |
tree | 26150c9e582fae1d27a2667e493a26ba6a2b5248 /drivers/staging | |
parent | b2aba7cc7105de5ce7769d7b5ddb0b0bc28909c5 (diff) | |
download | op-kernel-dev-c19fbca307c19bd0d49e86b9417613c90eb9de95.zip op-kernel-dev-c19fbca307c19bd0d49e86b9417613c90eb9de95.tar.gz |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/hv/vmbus_drv.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 74419a7..cede0ac 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -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, |