Merge tag 'batadv-next-for-davem-20190201' of git://git.open-mesh.org/linux-merge
[linux-2.6-block.git] / net / batman-adv / log.c
index f97849a8380be47b45cb9af53b60d525f211a5ab..3e610df8debfb2e7dd13b89101a07861c60b1de6 100644 (file)
@@ -136,7 +136,7 @@ static ssize_t batadv_log_read(struct file *file, char __user *buf,
        if (count == 0)
                return 0;
 
-       if (!access_ok(VERIFY_WRITE, buf, count))
+       if (!access_ok(buf, count))
                return -EFAULT;
 
        error = wait_event_interruptible(debug_log->queue_wait,