[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 17/19] linux-user/syscall.c: Don't skip stracing for
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 17/19] linux-user/syscall.c: Don't skip stracing for fcntl64 failure case |
Date: |
Tue, 6 Dec 2011 11:01:12 +0000 |
From: Peter Maydell <address@hidden>
In an fcntl64 failure path, we were returning directly rather than
simply breaking out of the switch statement. This skips the strace
code for printing the syscall return value, so don't do that.
Acked-by: Alexander Graf <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
linux-user/syscall.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c84cc65..2bf9e7e 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7521,8 +7521,10 @@ abi_long do_syscall(void *cpu_env, int num, abi_long
arg1,
#endif
cmd = target_to_host_fcntl_cmd(arg2);
- if (cmd == -TARGET_EINVAL)
- return cmd;
+ if (cmd == -TARGET_EINVAL) {
+ ret = cmd;
+ break;
+ }
switch(arg2) {
case TARGET_F_GETLK64:
--
1.7.7.3
- [Qemu-devel] [PATCH 03/19] console: Fix qemu_default_pixelformat() for 24 bpp, (continued)
- [Qemu-devel] [PATCH 03/19] console: Fix qemu_default_pixelformat() for 24 bpp, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 13/19] Convert keymap file to U TF-8 encoding, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 11/19] configure: Pull linux-headers/asm symlink creation out of loop, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 12/19] Convert source files to UTF-8 encoding, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 14/19] linux-user/cpu-uname.c : Convert to UTF-8, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 16/19] Rename get_tls to tls_var, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 15/19] linux-user/arm/nwfpe/fpo pcode.h: Fix non-UTF-8 characters, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 17/19] linux-user/syscall.c: Don't skip stracing for fcntl64 failure case,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 18/19] memory: minor documentation fixes/enhancements, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 19/19] mips_malta: resolve endless loop when loading bios, Stefan Hajnoczi, 2011/12/06
- [Qemu-devel] [PATCH 01/19] console: Clean up confusing indentation in console_putchar(), Stefan Hajnoczi, 2011/12/06
- Re: [Qemu-devel] [PULL 00/19] Trivial patches for 3 to 6 December 2011, Stefan Hajnoczi, 2011/12/14