[ofw] [PATCH 4/5] dat: dat_ia_open needs to close provider after failure
Davis, Arlin R
arlin.r.davis at intel.com
Thu Mar 13 10:05:03 PDT 2014
Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
dat/udat/udat.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dat/udat/udat.c b/dat/udat/udat.c
index 03edcf9..842b36c 100755
--- a/dat/udat/udat.c
+++ b/dat/udat/udat.c
@@ -210,6 +210,12 @@ dat_ia_openv(IN const DAT_NAME_PTR name,
async_event_handle, ia_handle);
if (dat_status == DAT_SUCCESS) {
*ia_handle = (DAT_IA_HANDLE) dats_set_ia_handle(*ia_handle);
+ } else {
+ (void)dat_dr_provider_close(&info);
+#ifndef DAT_NO_STATIC_REGISTRY
+ (void)dat_sr_provider_close(&info);
+#endif
+ return dat_status;
}
/*
--
1.7.3
More information about the ofw
mailing list