mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 12:08:30 +00:00
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: #4114 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
parent
cf6ba23fd9
commit
ed51cfd741
@ -1110,7 +1110,7 @@ int32_t hcall_set_callback_vector(const struct acrn_vm *vm, uint64_t param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((param > NR_MAX_VECTOR) || (param < VECTOR_DYNAMIC_START)) {
|
if ((param > NR_MAX_VECTOR) || (param < VECTOR_DYNAMIC_START)) {
|
||||||
pr_err("%s: Invalid passed vector\n");
|
pr_err("%s: Invalid passed vector\n", __func__);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user