blob: 658f7481876c6ccba2fab1c8b78484e4f5532a12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- c2_gpio.c
+++ c2_gpio.c
@@ -400,9 +400,9 @@
if (_IOC_TYPE(cmd) != C2_IOC_MAGIC) return -ENOTTY;
if (_IOC_NR(cmd) > C2_IOC_MAXNR) return -ENOTTY;
if (_IOC_DIR(cmd) & _IOC_READ)
- err = !access_ok(VERIFY_WRITE, (void *)arg, _IOC_SIZE(cmd));
+ err = !access_ok((void *)arg, _IOC_SIZE(cmd));
else if (_IOC_DIR(cmd) & _IOC_WRITE)
- err = !access_ok(VERIFY_READ, (void *)arg, _IOC_SIZE(cmd));
+ err = !access_ok((void *)arg, _IOC_SIZE(cmd));
if (err) return -EFAULT;
switch(_IOC_NR(cmd)) {
case _IOC_NR(C2_IOCRESET):
|