Skip to content

Commit f51e7c4

Browse files
committed
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]> 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]>
1 parent 97a3c57 commit f51e7c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bsd-user/freebsd/os-syscall.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
240240

241241
case TARGET_FREEBSD_NR_preadv: /* preadv(2) */
242242
ret = do_bsd_preadv(cpu_env, arg1, arg2, arg3, arg4, arg5, arg6);
243+
break;
243244

244245
case TARGET_FREEBSD_NR_write: /* write(2) */
245246
ret = do_bsd_write(arg1, arg2, arg3);

0 commit comments

Comments
 (0)