Change is_compat_task to in_compat_syscall
This commit is contained in:
@@ -13902,7 +13902,11 @@ static int rtw_ioctl_standard_wext_private(struct net_device *dev, struct ifreq
|
||||
static int rtw_ioctl_wext_private(struct net_device *dev, struct ifreq *rq)
|
||||
{
|
||||
#ifdef CONFIG_COMPAT
|
||||
#ifdef in_compat_syscall
|
||||
if(in_compat_syscall())
|
||||
#else
|
||||
if(is_compat_task())
|
||||
#endif
|
||||
return rtw_ioctl_compat_wext_private( dev, rq );
|
||||
else
|
||||
#endif // CONFIG_COMPAT
|
||||
|
@@ -574,7 +574,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
||||
goto exit;
|
||||
}
|
||||
#ifdef CONFIG_COMPAT
|
||||
#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;
|
||||
|
||||
|
Reference in New Issue
Block a user