hv: fix error debug message in hcall_set_callback_vector

this patch is to fix error debug message
 for invalid 'param' case, there is no string
 variable for '%s' output, which will potenially
 trigger hypervisor crash as it may access random
 memroy address and trigger SMAP violation.

Tracked-On: #3801
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang 2019-10-12 14:36:00 +08:00 committed by ACRN System Integration
parent 62ed91d303
commit b1e43b4454
1 changed files with 1 additions and 1 deletions

View File

@ -1175,7 +1175,7 @@ int32_t hcall_set_callback_vector(const struct acrn_vm *vm, uint64_t param)
pr_err("%s: Targeting to service vm", __func__);
ret = -EPERM;
} else if ((param > NR_MAX_VECTOR) || (param < VECTOR_DYNAMIC_START)) {
pr_err("%s: Invalid passed vector\n");
pr_err("%s: Invalid passed vector\n", __func__);
ret = -EINVAL;
} else {
set_vhm_notification_vector((uint32_t)param);