In hal_common_put_backend(), requested module backend can be
already put fully. For the case, ignore the hal backend.
Change-Id: I7eef57fa12273760d28b22738ee878ac423da651
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
backend = hal_module_info[module].library_backend;
handle = hal_module_info[module].library_handle;
- if (backend && backend->exit) {
+ if (!backend) {
+ _I("Already fully put for HAL module (%d)\n", module);
+ return TIZEN_ERROR_NONE;
+ }
+
+ if (backend->exit) {
ret = backend->exit(data);
if (ret < 0) {
_E("Failed to exit backend: name(%s)/vendor(%s)\n",