Fix: Remove 'type' argument from access_ok() function (v5.0)
[lttng-modules.git] / lib / ringbuffer / ring_buffer_iterator.c
index 9efe49194f7d4b1efd11883f407fb1f979a8f2db..d25db72502756b96a7bc3d65ebb33da635436023 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <wrapper/ringbuffer/iterator.h>
 #include <wrapper/file.h>
+#include <wrapper/uaccess.h>
 #include <linux/jiffies.h>
 #include <linux/delay.h>
 #include <linux/module.h>
@@ -605,7 +606,7 @@ ssize_t channel_ring_buffer_file_read(struct file *filp,
        ssize_t len;
 
        might_sleep();
-       if (!access_ok(VERIFY_WRITE, user_buf, count))
+       if (!lttng_access_ok(VERIFY_WRITE, user_buf, count))
                return -EFAULT;
 
        /* Finish copy of previous record */
This page took 0.022769 seconds and 4 git commands to generate.