Fix build error for Linux 5.0

pull/3/head
brektrou 7 years ago committed by GitHub
parent 9b61b36f30
commit 4975608e5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -653,8 +653,9 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
ret = -ENOMEM;
goto exit;
}
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
// Fix build error for Linux 5.0
if (VENDOR_READ, priv_cmd.buf, priv_cmd.total_len) {
RTW_INFO("%s: failed to access memory\n", __FUNCTION__);
ret = -EFAULT;
goto exit;

Loading…
Cancel
Save