projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Remove 'type' argument from access_ok() function (v5.0)
[lttng-modules.git]
/
lib
/
ringbuffer
/
backend.h
diff --git
a/lib/ringbuffer/backend.h
b/lib/ringbuffer/backend.h
index 501fad480db4c05de59c1051fe7caf4577ad9621..da937f29d6f8cc3c8954ca4be7361e9f7e003139 100644
(file)
--- a/
lib/ringbuffer/backend.h
+++ b/
lib/ringbuffer/backend.h
@@
-21,7
+21,7
@@
#include <linux/list.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/list.h>
#include <linux/fs.h>
#include <linux/mm.h>
-#include <
linux
/uaccess.h>
+#include <
wrapper
/uaccess.h>
/* Internal helpers */
#include <wrapper/ringbuffer/backend_internal.h>
/* Internal helpers */
#include <wrapper/ringbuffer/backend_internal.h>
@@
-289,7
+289,7
@@
void lib_ring_buffer_copy_from_user_inatomic(const struct lib_ring_buffer_config
set_fs(KERNEL_DS);
pagefault_disable();
set_fs(KERNEL_DS);
pagefault_disable();
- if (unlikely(!access_ok(VERIFY_READ, src, len)))
+ if (unlikely(!
lttng_
access_ok(VERIFY_READ, src, len)))
goto fill_buffer;
if (likely(pagecpy == len)) {
goto fill_buffer;
if (likely(pagecpy == len)) {
@@
-359,7
+359,7
@@
void lib_ring_buffer_strcpy_from_user_inatomic(const struct lib_ring_buffer_conf
set_fs(KERNEL_DS);
pagefault_disable();
set_fs(KERNEL_DS);
pagefault_disable();
- if (unlikely(!access_ok(VERIFY_READ, src, len)))
+ if (unlikely(!
lttng_
access_ok(VERIFY_READ, src, len)))
goto fill_buffer;
if (likely(pagecpy == len)) {
goto fill_buffer;
if (likely(pagecpy == len)) {
@@
-449,7
+449,7
@@
unsigned long lib_ring_buffer_copy_from_user_check_nofault(void *dest,
unsigned long ret;
mm_segment_t old_fs;
unsigned long ret;
mm_segment_t old_fs;
- if (!access_ok(VERIFY_READ, src, len))
+ if (!
lttng_
access_ok(VERIFY_READ, src, len))
return 1;
old_fs = get_fs();
set_fs(KERNEL_DS);
return 1;
old_fs = get_fs();
set_fs(KERNEL_DS);
This page took
0.023551 seconds
and
4
git commands to generate.