diff options
author | Helge Deller <deller@gmx.de> | 2019-05-01 15:59:58 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-05-04 00:47:40 +0300 |
commit | d19a12906e5e558c0f6b6cfece7b7caf1012ef95 (patch) | |
tree | 3bacdc4ac6c5bf8cbad2e904b5d92c71a86f5a96 /arch/parisc/mm | |
parent | 2d94a832e246ac00fd32eec241e6f1aa6fbc5700 (diff) | |
download | linux-d19a12906e5e558c0f6b6cfece7b7caf1012ef95.tar.xz |
parisc: Allow live-patching of __meminit functions
When making the text sections writeable with set_kernel_text_rw(1),
include all text sections including those in the __init section.
Otherwise functions marked with __meminit will stay read-only.
Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # 4.20+
Diffstat (limited to 'arch/parisc/mm')
-rw-r--r-- | arch/parisc/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 513f747b0d9d..3b0f9eab7f2c 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -478,7 +478,7 @@ static void __init map_pages(unsigned long start_vaddr, void __init set_kernel_text_rw(int enable_read_write) { - unsigned long start = (unsigned long) _text; + unsigned long start = (unsigned long) __init_begin; unsigned long end = (unsigned long) &data_start; map_pages(start, __pa(start), end-start, |