1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-19 09:01:10 +02:00

port some changes from another repo to this one to fix lags

This commit is contained in:
Joe Acosta
2015-08-11 20:45:59 -07:00
parent 727dcb11f3
commit 5b2a0f8609
3 changed files with 8 additions and 3 deletions

View File

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