lkml.org 
[lkml]   [2011]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/77] Staging: hv: vmbus: Properly handle the error in hv_acpi_init()
Date
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>
---
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 be158be..1c949f5 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;
}


--
1.7.4.1


\
 
 \ /
  Last update: 2011-06-16 22:07    [W:0.308 / U:4.828 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site