If the return value of the __send_app_request() function is zero,
AMD should send the result to the caller with the process ID.
Change-Id: Iab0eada715555c2a47474d05ee6acbea0fddafa4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
int ret;
ret = __send_app_request(pid, target_uid, cmd, -1, kb);
- if (ret < 0)
+ if (ret < 0) {
_E("Failed to send request. pid(%d), cmd(%d)", pid, cmd);
+ _request_send_result(req, ret);
+ } else {
+ _request_send_result(req, pid);
+ }
- _request_send_result(req, ret);
_D("cmd(%d), pid(%d)", cmd, pid);
return ret;
}