[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 36/36] bsd-user: Add missing break after do_bsd_preadv
From: |
Warner Losh |
Subject: |
[PULL 36/36] bsd-user: Add missing break after do_bsd_preadv |
Date: |
Mon, 28 Aug 2023 17:38:21 -0600 |
Without it, we'd call preadv, then write with weird parameters, which is
clearly not ideal...
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Fixes: 770d8abae7 ("bsd-user/bsd-file.h: Meat of the write system calls")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230820045419.89691-1-imp@bsdimp.com>
---
bsd-user/freebsd/os-syscall.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c
index e9b1b663af4..fa60df529ef 100644
--- a/bsd-user/freebsd/os-syscall.c
+++ b/bsd-user/freebsd/os-syscall.c
@@ -240,6 +240,7 @@ static abi_long freebsd_syscall(void *cpu_env, int num,
abi_long arg1,
case TARGET_FREEBSD_NR_preadv: /* preadv(2) */
ret = do_bsd_preadv(cpu_env, arg1, arg2, arg3, arg4, arg5, arg6);
+ break;
case TARGET_FREEBSD_NR_write: /* write(2) */
ret = do_bsd_write(arg1, arg2, arg3);
--
2.41.0
- [PULL 22/36] bsd-user: Implement statfs related syscalls, (continued)
- [PULL 22/36] bsd-user: Implement statfs related syscalls, Warner Losh, 2023/08/28
- [PULL 24/36] bsd-user: Implement stat related syscalls, Warner Losh, 2023/08/28
- [PULL 15/36] bsd-user: Implement h2t_freebsd11_stat h2t_freebsd_nstat, Warner Losh, 2023/08/28
- [PULL 19/36] bsd-uesr: Implement h2t_freebsd_stat and h2t_freebsd_statfs functions, Warner Losh, 2023/08/28
- [PULL 21/36] bsd-user: Implement statfh related syscalls, Warner Losh, 2023/08/28
- [PULL 23/36] bsd-user: Implement getdents related syscalls, Warner Losh, 2023/08/28
- [PULL 25/36] bsd-user: Implement freebsd11 stat related syscalls, Warner Losh, 2023/08/28
- [PULL 28/36] bsd-user: Implement freebsd11 getdirents related syscalls, Warner Losh, 2023/08/28
- [PULL 33/36] bsd-user: Add glue for getfh and related syscalls, Warner Losh, 2023/08/28
- [PULL 32/36] bsd-user: Add glue for the freebsd11_stat syscalls, Warner Losh, 2023/08/28
- [PULL 36/36] bsd-user: Add missing break after do_bsd_preadv,
Warner Losh <=
- [PULL 27/36] bsd-user: Implement freebsd11 statfs related syscalls, Warner Losh, 2023/08/28
- [PULL 35/36] bsd-user: Add getdents and fcntl related system calls, Warner Losh, 2023/08/28
- [PULL 26/36] bsd-user: Implement freebsd11 fstat and fhstat related syscalls, Warner Losh, 2023/08/28
- [PULL 29/36] bsd-user: Implement freebsd11 netbsd stat related syscalls, Warner Losh, 2023/08/28
- [PULL 31/36] bsd-user: Add os-stat.c to the build, Warner Losh, 2023/08/28
- [PULL 30/36] bsd-user: Implement do_freebsd_realpathat syscall, Warner Losh, 2023/08/28
- [PULL 34/36] bsd-user: Add glue for statfs related system calls, Warner Losh, 2023/08/28
- Re: [PULL 00/36] 2023q3 bsd user patches, Stefan Hajnoczi, 2023/08/29