From: Andy Lutomirski Date: Tue, 22 Mar 2016 21:25:07 +0000 (-0700) Subject: net/sctp: use in_compat_syscall for sctp_getsockopt_connectx3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96c0e0a908ecfa61118d49db85c03e162b7f6e20;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/sctp: use in_compat_syscall for sctp_getsockopt_connectx3 SCTP unfortunately has a different ABI for SCTP_SOCKOPT_CONNECTX3 for 32-bit and 64-bit callers. Use in_compat_syscall to correctly distinguish them on all architectures. Signed-off-by: Andy Lutomirski Cc: Vlad Yasevich Cc: Neil Horman Cc: David Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 96e08111106f..6f2653d86961 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c @@ -1389,7 +1389,7 @@ static int sctp_getsockopt_connectx3(struct sock *sk, int len, int err = 0; #ifdef CONFIG_COMPAT - if (is_compat_task()) { + if (in_compat_syscall()) { struct compat_sctp_getaddrs_old param32; if (len < sizeof(param32))