mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
fix for is_compat_task()
as seen and suggested by CGarces here https://github.com/CGarces/RTL8192EU-linux/issues/1#issuecomment-300795406
This commit is contained in:
@@ -592,7 +592,11 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
||||
goto exit;
|
||||
}
|
||||
#ifdef CONFIG_COMPAT
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
|
||||
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