Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6-block.git] / net / sctp / socket.c
index a44a97c937248902cd7c75eb24c0971acd279d0f..878d28eda1a68dc639d7b9f3f663d7518f21bb32 100644 (file)
@@ -1391,7 +1391,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))