uti: Zero-clear struct mckernel_exec_file before initialization

Change-Id: I315008b7f5c9e66a93b80da87d1a6332d717c2aa
This commit is contained in:
Masamichi Takagi
2018-02-22 17:43:28 +09:00
parent 25a129ea6a
commit c60a778c8d

View File

@ -1823,6 +1823,7 @@ int mcexec_open_exec(ihk_os_t os, char * __user filename)
retval = -ENOMEM;
goto out_put_file;
}
memset(mcef, 0, sizeof(struct mckernel_exec_file)); /* debug */
down(&mckernel_exec_file_lock);
/* Find previous file (if exists) and drop it */