Message ID | 20230512112238.85272-8-laurent@vivier.eu |
---|---|
State | New |
Headers | show |
Series | [PULL,1/9] linux-user: Emulate /proc/cpuinfo output for riscv | expand |
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 95da74ab1234..7170332041ca 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11981,7 +11981,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1, #ifdef TARGET_NR_mincore case TARGET_NR_mincore: { - void *a = lock_user(VERIFY_READ, arg1, arg2, 0); + void *a = lock_user(VERIFY_NONE, arg1, arg2, 0); if (!a) { return -TARGET_ENOMEM; }