PASS handles each h/w resource independently. When PASS fail
to initialize or load the library, it should not affect anything else.
So, this patch tries to initialize/exit each h/w resource continuously
when other h/w resource faild to initialize/exit because each h/w resource
is independent.
Change-Id: Ibc0d40347c6b6dbbf4c2576659d937e171fa362e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
if (ret < -1) {
_E("Cannot get the pass '%s' resource (%d)\n",
cdata->res_name, ret);
- return ret;
+ continue;
}
ret = pass_resource_init(policy);
if (ret < 0) {
_E("Cannot initialize the pass '%s' resource (%d)\n",
cdata->res_name, ret);
- return ret;
+ continue;
}
}
if (ret < 0) {
_E("Cannot exit the pass '%s' resource (%d)\n",
cdata->res_name, ret);
- goto exit;
+ continue;
}
ret = pass_put_resource(pass_res);
if (ret < 0) {
_E("Cannot put the pass '%s' resource (%d)\n",
cdata->res_name, ret);
- goto exit;
+ continue;
}
}
-exit:
- return ret;
+ return 0;
}
/*