bsd-user: Add missing break after do_bsd_preadv
PATCH 1/1 bsd-user: Add missing break after do_bsd_preadv
Without it, we'd call preadv, then write with weird parameters, which is clearly not ideal...
Signed-off-by Warner Losh <[email protected]>
--- bsd-user/freebsd/os-syscall.c | 1 + 1 file changed, 1 insertion(+)
bsd-user/freebsd/os-syscall.c +1 -0
@@ -248,6 +248,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);
Signature · 1 line
2.40.0
Quoted 7 lines · Warner Losh
Without it, we'd call preadv, then write with weird parameters, which is clearly not ideal...
Signed-off-by Warner Losh<[email protected]>--- bsd-user/freebsd/os-syscall.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by Richard Henderson <[email protected]>
r~
Quoted 7 lines · Warner Losh
Without it, we'd call preadv, then write with weird parameters, which is clearly not ideal...
Signed-off-by Warner Losh <[email protected]>--- bsd-user/freebsd/os-syscall.c | 1 + 1 file changed, 1 insertion(+)
Ouch.
Fixes 770d8abae7 ("bsd-user/bsd-file.h: Meat of the write system calls")
Reviewed-by Philippe Mathieu-Daudé <[email protected]>