diff options
author | Laurent Vivier | 2018-07-13 14:58:05 +0200 |
---|---|---|
committer | Laurent Vivier | 2018-07-15 16:01:15 +0200 |
commit | af8ab2bf223e1e4406108708b47476ef0d148a52 (patch) | |
tree | 7954221f5490dee1f8365fb748c8d6eaebf21872 /linux-user | |
parent | linux-user: ppc64: use the correct values for F_*LK64s (diff) | |
download | qemu-af8ab2bf223e1e4406108708b47476ef0d148a52.tar.gz qemu-af8ab2bf223e1e4406108708b47476ef0d148a52.tar.xz qemu-af8ab2bf223e1e4406108708b47476ef0d148a52.zip |
linux-user: convert remaining fcntl() to safe_fcntl()
Commit 435da5e709 didn't convert a fcntl() call to safe_fcntl()
for TARGET_NR_fcntl64 case. There is no reason to not use it
in this case.
Fixes: 435da5e709 linux-user: Use safe_syscall wrapper for fcntl
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180713125805.10749-1-laurent@vivier.eu>
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index b8b7bced9f..aa4f3eb1c8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -11764,7 +11764,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, if (ret) { break; } - ret = get_errno(fcntl(arg1, cmd, &fl)); + ret = get_errno(safe_fcntl(arg1, cmd, &fl)); if (ret == 0) { ret = copyto(arg3, &fl); } |