diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-06-16 13:16:38 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-05 08:59:24 -0700 |
commit | 91fd799eb12bd43b3dfda368abb06d2a7d864462 (patch) | |
tree | eebec327ef85654a71b49e15729d77018840df95 /drivers | |
parent | 9079ce691255792009c446d8c3382507b8d38635 (diff) | |
download | lwn-91fd799eb12bd43b3dfda368abb06d2a7d864462.tar.gz lwn-91fd799eb12bd43b3dfda368abb06d2a7d864462.zip |
Staging: hv: vmbus: Properly handle the error in hv_acpi_init()
Properly handle the error in hv_acpi_init().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/vmbus_drv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index be158be28ee3..1c949f5fb716 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -788,7 +788,10 @@ static int __init hv_acpi_init(void) return -ENODEV; } - return vmbus_bus_init(irq); + ret = vmbus_bus_init(irq); + if (ret) + acpi_bus_unregister_driver(&vmbus_acpi_driver); + return ret; } |