Skip to content

Commit d556371

Browse files
committed
MIPS: N32: Fix preadv(2) and pwritev(2) entry points.
By using the native syscall entry point the kernel was also expecting 64-bit iovec structures. This is broken since ddd9e91 [preadv/ pwritev: MIPS: Add preadv(2) and pwritev(2) syscalls.] which originally added these two syscalls. I walked through piles of code, including libc and couldn't find anything that would have worked around the issue so this change the API to what it should always have been. Noticed and patch suggested by Al Viro. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent ac53c4f commit d556371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/mips/kernel/scall64-n32.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ EXPORT(sysn32_call_table)
403403
PTR sys_dup3 /* 6290 */
404404
PTR sys_pipe2
405405
PTR sys_inotify_init1
406-
PTR sys_preadv
407-
PTR sys_pwritev
406+
PTR compat_sys_preadv
407+
PTR compat_sys_pwritev
408408
PTR compat_sys_rt_tgsigqueueinfo /* 6295 */
409409
PTR sys_perf_event_open
410410
PTR sys_accept4

0 commit comments

Comments
 (0)