Skip to content
Snippets Groups Projects
Commit a80c8227 authored by Clemens Terasa's avatar Clemens Terasa
Browse files

eetii2c: Port to Kernel 5.4

The access_ok macro has changed and abolished the first parameter with
commit 96d4f267e40f9509e8a66e2b39e8b95655617693 (v5.0).
Thus change the  eetii2c driver accordingly and remove the first
parameter.
parent 109d1fb0
No related branches found
No related tags found
1 merge request!13touch: Add G&F touch drivers
......@@ -362,9 +362,9 @@ static long egalax_cdev_ioctl(struct file *filp, unsigned int cmd, unsigned long
return -ENOTTY;
if(_IOC_DIR(cmd) & _IOC_READ)
ret = !access_ok(VERIFY_WRITE, (void __user*)args, _IOC_SIZE(cmd));
ret = !access_ok((void __user*)args, _IOC_SIZE(cmd));
else if(_IOC_DIR(cmd) & _IOC_WRITE)
ret = !access_ok(VERIFY_READ, (void __user*)args, _IOC_SIZE(cmd));
ret = !access_ok((void __user*)args, _IOC_SIZE(cmd));
if(ret)
return -EFAULT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment