diff mbox

[v3,09/13] linux-user: Add missing 'break' in i386 get_thread_area syscall

Message ID 1373996700-29286-10-git-send-email-peter.maydell@linaro.org
State Accepted
Headers show

Commit Message

Peter Maydell July 16, 2013, 5:44 p.m. UTC
The i386 code for the get_thread_area syscall was missing a
'break' which meant it would have fallen through into the
implementation of the following syscall; add it.

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

Comments

Richard Henderson July 16, 2013, 6:33 p.m. UTC | #1
On 07/16/2013 10:44 AM, Peter Maydell wrote:
> The i386 code for the get_thread_area syscall was missing a
> 'break' which meant it would have fallen through into the
> implementation of the following syscall; add it.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>  linux-user/syscall.c |    1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <rth@twiddle.net>


r~
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 9619656..642d0a3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -8572,6 +8572,7 @@  abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_get_thread_area:
 #if defined(TARGET_I386) && defined(TARGET_ABI32)
         ret = do_get_thread_area(cpu_env, arg1);
+        break;
 #elif defined(TARGET_M68K)
         {
             TaskState *ts = ((CPUArchState *)cpu_env)->opaque;