Skip to content

Commit

Permalink
bsd-user: Add missing break after do_bsd_preadv
Browse files Browse the repository at this point in the history
Without it, we'd call preadv, then write with weird parameters, which is
clearly not ideal...

Signed-off-by: Warner Losh <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Fixes: 770d8ab ("bsd-user/bsd-file.h: Meat of the write system calls")
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
bsdimp committed Aug 28, 2023
1 parent 97a3c57 commit f51e7c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bsd-user/freebsd/os-syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f51e7c4

Please sign in to comment.