diff mbox

[2/2] linux-user: Don't return uninitialized value for atomic_barrier syscall

Message ID 1394629561-11813-3-git-send-email-peter.maydell@linaro.org
State Superseded
Headers show

Commit Message

Peter Maydell March 12, 2014, 1:06 p.m. UTC
QEMU's implementation of the m68k atomic_barrier syscall, like the kernel's,
is just a no-op. However we still need to return a result code from it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e2c10cc..19317eb 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9142,6 +9142,7 @@  abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_atomic_barrier:
     {
         /* Like the kernel implementation and the qemu arm barrier, no-op this? */
+        ret = 0;
         break;
     }
 #endif