diff options
Diffstat (limited to 'mm/rodata_test.c')
-rw-r--r-- | mm/rodata_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/rodata_test.c b/mm/rodata_test.c index 5e313fa93276..2613371945b7 100644 --- a/mm/rodata_test.c +++ b/mm/rodata_test.c @@ -7,6 +7,7 @@ */ #define pr_fmt(fmt) "rodata_test: " fmt +#include <linux/rodata_test.h> #include <linux/uaccess.h> #include <asm/sections.h> @@ -25,7 +26,7 @@ void rodata_test(void) } /* test 2: write to the variable; this should fault */ - if (!probe_kernel_write((void *)&rodata_test_data, + if (!copy_to_kernel_nofault((void *)&rodata_test_data, (void *)&zero, sizeof(zero))) { pr_err("test data was not read only\n"); return; |