Commit 31b63193 authored by Peter Maydell's avatar Peter Maydell Committed by Stefan Hajnoczi
Browse files

linux-user/syscall.c: Don't skip stracing for fcntl64 failure case



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: default avatarAlexander Graf <agraf@suse.de>
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
parent 4a2dd92d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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: