mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Merge "soc: qcom: guestvm_loader: fix vm start print message"
This commit is contained in:
commit
3b1ff0a366
2 changed files with 8 additions and 9 deletions
|
|
@ -502,28 +502,26 @@ int hh_rm_vm_start(int vmid)
|
|||
struct hh_vm_start_resp_payload *resp_payload;
|
||||
struct hh_vm_start_req_payload req_payload = {0};
|
||||
size_t resp_payload_size;
|
||||
int err, reply_err_code;
|
||||
int reply_err_code = 0;
|
||||
|
||||
req_payload.vmid = (hh_vmid_t) vmid;
|
||||
|
||||
resp_payload = hh_rm_call(HH_RM_RPC_MSG_ID_CALL_VM_START,
|
||||
&req_payload, sizeof(req_payload),
|
||||
&resp_payload_size, &reply_err_code);
|
||||
if (reply_err_code || IS_ERR_OR_NULL(resp_payload)) {
|
||||
err = PTR_ERR(resp_payload);
|
||||
if (reply_err_code) {
|
||||
pr_err("%s: VM_START failed with err: %d\n",
|
||||
__func__, err);
|
||||
return err;
|
||||
__func__, reply_err_code);
|
||||
return reply_err_code;
|
||||
}
|
||||
|
||||
if (resp_payload_size != sizeof(*resp_payload)) {
|
||||
if (resp_payload_size) {
|
||||
pr_err("%s: Invalid size received for VM_START: %u\n",
|
||||
__func__, resp_payload_size);
|
||||
kfree(resp_payload);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return resp_payload->response;
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(hh_rm_vm_start);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue