Change is_compat_task to in_compat_syscall

This commit is contained in:
CGarces
2017-11-26 01:12:38 +01:00
committed by Icenowy Zheng
parent 96610a9c04
commit 5b4f358d54
2 changed files with 8 additions and 0 deletions

View File

@@ -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