mcexec_create_per_process_data: Zero ppd on allocation

Change-Id: I06306f30ce30ad6ddc6e8b8cab46ee39be0e4940
This commit is contained in:
Masamichi Takagi
2018-08-24 17:28:03 +09:00
parent 567dcd3846
commit f127dfdf1e

View File

@ -1663,6 +1663,7 @@ int mcexec_create_per_process_data(ihk_os_t os)
printk("%s: ERROR: allocating per-process data\n", __FUNCTION__);
return -ENOMEM;
}
memset(ppd, 0, sizeof(struct mcctrl_per_proc_data)); /* debug */
ppd->ud = usrdata;
ppd->pid = task_tgid_vnr(current);