mcctrl_get_request_os_cpu: check os instance & ret_cpu
Change-Id: I4d3f6fd93eaa183d560c874ba33add83c4308c5a
This commit is contained in:
committed by
Masamichi Takagi
parent
b510de7bd5
commit
2814f7cac4
@ -3503,7 +3503,7 @@ int mcctrl_get_request_os_cpu(ihk_os_t os, int *ret_cpu)
|
||||
struct ihk_ikc_channel_desc *ch;
|
||||
int ret = 0;
|
||||
|
||||
if (!os) {
|
||||
if (!os || ihk_host_validate_os(os) || !ret_cpu) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user