]> Git Repo - qemu.git/commitdiff
linux-user/syscall.c: Don't skip stracing for fcntl64 failure case
authorPeter Maydell <[email protected]>
Mon, 5 Dec 2011 23:11:50 +0000 (23:11 +0000)
committerStefan Hajnoczi <[email protected]>
Tue, 6 Dec 2011 10:08:52 +0000 (10:08 +0000)
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 <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
linux-user/syscall.c

index c84cc65f7a29ca67779aa77f911709736239758b..2bf9e7ec44ed674d34130c4bf471e5f0cdd5a380 100644 (file)
@@ -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:
This page took 0.034727 seconds and 4 git commands to generate.