make gettimeofday ignore NULL parameter

This commit is contained in:
NAKAMURA Gou
2015-09-16 11:23:45 +09:00
parent 5ad0a03d18
commit c8a13cf213

View File

@ -4978,6 +4978,11 @@ SYSCALL_DECLARE(gettimeofday)
struct syscall_request request IHK_DMA_ALIGN; struct syscall_request request IHK_DMA_ALIGN;
struct timezone *tz = (struct timezone *)ihk_mc_syscall_arg1(ctx); struct timezone *tz = (struct timezone *)ihk_mc_syscall_arg1(ctx);
if (!tv && !tz) {
/* nothing to do */
return 0;
}
/* Do it locally if supported */ /* Do it locally if supported */
if (!tz && gettime_local_support) { if (!tz && gettime_local_support) {
update_cpu_local_time(); update_cpu_local_time();