Skip to content

Commit bd960d1

Browse files
author
Sergei Makarenkov
committed
Another is_compat_task() issue
1 parent 8fbfb14 commit bd960d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

os_dep/linux/rtw_android.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
577577
goto exit;
578578
}
579579
#ifdef CONFIG_COMPAT
580-
if (is_compat_task()) {
580+
#ifdef in_compat_syscall
581+
if(in_compat_syscall()) {
582+
#else
583+
if(is_compat_task()) {
584+
#endif
581585
/* User space is 32-bit, use compat ioctl */
582586
compat_android_wifi_priv_cmd compat_priv_cmd;
583587

0 commit comments

Comments
 (0)