mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-10-19 17:11:09 +02:00
port some changes from another repo to this one to fix lags
This commit is contained in:
@@ -357,7 +357,12 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
/* compat makes it a u32 instead of char * */
|
||||
#ifdef CONFIG_COMPAT
|
||||
if (copy_from_user(command, (void *)&priv_cmd.buf, priv_cmd.total_len)) {
|
||||
#else
|
||||
if (copy_from_user(command, (void *)priv_cmd.buf, priv_cmd.total_len)) {
|
||||
#endif
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user