projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2aba7c
)
Staging: hv: check return value of bus_register()
author
Bill Pemberton
<wfp5p@virginia.edu>
Mon, 27 Jul 2009 20:47:35 +0000
(16:47 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 15 Sep 2009 19:01:50 +0000
(12:01 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/vmbus_drv.c
patch
|
blob
|
history
diff --git
a/drivers/staging/hv/vmbus_drv.c
b/drivers/staging/hv/vmbus_drv.c
index 74419a7eb32d3b35379b9145f969deb3599d1b88..cede0ace9ad5bcb5763a4944b9b1b0afc33fc40a 100644
(file)
--- 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,