MIPS: N32: Use compat getsockopt syscall
authorSorin Dumitru <sdumitru@ixiacom.com>
Fri, 20 Jun 2014 11:23:35 +0000 (14:23 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 15:32:23 +0000 (17:32 +0200)
The IP_PKTOPTIONS sockopt puts control messages in option_values, these
need to be handled differently in the compat case. This is already done
through the MSG_CMSG_COMPAT flag, we just need to use
compat_sys_getsockopt which sets that flag.

Signed-off-by: Sorin Dumitru <sdumitru@ixiacom.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7115/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/scall64-n32.S

index c1dbcda4b816844cc64821aa8d64a79d5c9a38f3..e543861ef00ab607a7d7af22b3887f2cb2c34d50 100644 (file)
@@ -162,7 +162,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_getpeername
        PTR     sys_socketpair
        PTR     compat_sys_setsockopt
-       PTR     sys_getsockopt
+       PTR     compat_sys_getsockopt
        PTR     __sys_clone                     /* 6055 */
        PTR     __sys_fork
        PTR     compat_sys_execve
This page took 0.027671 seconds and 5 git commands to generate.