diff options
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 41824e776b6c..295be1d07b82 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -782,7 +782,7 @@ void mark_rodata_ro(void) | |||
782 | * The rodata section (but not the kernel text!) should also be | 782 | * The rodata section (but not the kernel text!) should also be |
783 | * not-executable. | 783 | * not-executable. |
784 | */ | 784 | */ |
785 | set_memory_nx(rodata_start, (end - start) >> PAGE_SHIFT); | 785 | set_memory_nx(rodata_start, (end - rodata_start) >> PAGE_SHIFT); |
786 | 786 | ||
787 | rodata_test(); | 787 | rodata_test(); |
788 | 788 | ||