mcctrl_ikc_send: validate os and check input packet
Change-Id: I1f8c2228043841685617b665eeeaf2ce15a08703
This commit is contained in:
committed by
Masamichi Takagi
parent
fe5d8fc71f
commit
442045a320
@ -280,7 +280,11 @@ int mcctrl_ikc_send(ihk_os_t os, int cpu, struct ikc_scd_packet *pisp)
|
||||
{
|
||||
struct mcctrl_usrdata *usrdata;
|
||||
|
||||
if (!os || cpu < 0) {
|
||||
if (!os || ihk_host_validate_os(os) || !pisp) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (cpu < 0) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user