Skip to content

Commit

Permalink
MIPS: N32: Fix preadv(2) and pwritev(2) entry points.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Dec 4, 2012
1 parent ac53c4f commit d556371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/kernel/scall64-n32.S
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ EXPORT(sysn32_call_table)
PTR sys_dup3 /* 6290 */
PTR sys_pipe2
PTR sys_inotify_init1
PTR sys_preadv
PTR sys_pwritev
PTR compat_sys_preadv
PTR compat_sys_pwritev
PTR compat_sys_rt_tgsigqueueinfo /* 6295 */
PTR sys_perf_event_open
PTR sys_accept4
Expand Down

0 comments on commit d556371

Please sign in to comment.