From 74bcc94ed0cda7128bdaabcd0e7ef9ee0c970c58 Mon Sep 17 00:00:00 2001 From: Sergei Makarenkov Date: Sat, 21 Jan 2017 23:52:11 +0300 Subject: [PATCH] Another is_compat_task() issue --- os_dep/linux/rtw_android.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/rtw_android.c b/os_dep/linux/rtw_android.c index db42bd6..016daa0 100644 --- a/os_dep/linux/rtw_android.c +++ b/os_dep/linux/rtw_android.c @@ -577,7 +577,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) goto exit; } #ifdef CONFIG_COMPAT - if (is_compat_task()) { +#ifdef in_compat_syscall + if(in_compat_syscall()) { +#else + if(is_compat_task()) { +#endif /* User space is 32-bit, use compat ioctl */ compat_android_wifi_priv_cmd compat_priv_cmd;