mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 14:03:40 +00:00
rtl8188eu: Compile fix for kernel versions from 4.18 to 4.20
The #access_ok macro has two arguments starting from kernel 5.0.
This commit is contained in:
parent
0f6d12e144
commit
667ab7a45f
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0))
|
||||||
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
|
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) {
|
||||||
#else
|
#else
|
||||||
if (!access_ok(VERIFY_READ, (const void __user *)priv_cmd.buf,
|
if (!access_ok(VERIFY_READ, (const void __user *)priv_cmd.buf,
|
||||||
|
|
Loading…
Reference in a new issue