When try to use backend->name, backend->vendor variables
after dlclose(handle) of HAL backend shared library, segmentation fault happen.
So that move dlclose(hanlde) at the end of hal_common_put_backend() to
fix the segmentation fault.
Change-Id: Icc89e26b0ff11706657f1bfdeff16eba17f255d9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
}
}
+ _I("Put HAL backend: name(%s)/vendor(%s)\n",
+ backend->name, backend->vendor);
+
if (handle)
dlclose(handle);
- _I("Put HAL backend: name(%s)/vendor(%s)\n",
- backend->name, backend->vendor);
+ hal_module_info[module].library_backend = NULL;
+ hal_module_info[module].library_handle = NULL;
return TIZEN_ERROR_NONE;
}