Commit 5ecbe3c3c690b5ab493c730c317475287a9e8b45

Authored by Helge Deller
Committed by Linus Torvalds
1 parent e7c0d3dac8

kernel/extable: fix address-checks for core_kernel and init areas

The init_kernel_text() and core_kernel_text() functions should not
include the labels _einittext and _etext when checking if an address is
inside the .text or .init sections.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -61,7 +61,7 @@
61 61 static inline int init_kernel_text(unsigned long addr)
62 62 {
63 63 if (addr >= (unsigned long)_sinittext &&
64   - addr <= (unsigned long)_einittext)
  64 + addr < (unsigned long)_einittext)
65 65 return 1;
66 66 return 0;
67 67 }
... ... @@ -69,7 +69,7 @@
69 69 int core_kernel_text(unsigned long addr)
70 70 {
71 71 if (addr >= (unsigned long)_stext &&
72   - addr <= (unsigned long)_etext)
  72 + addr < (unsigned long)_etext)
73 73 return 1;
74 74  
75 75 if (system_state == SYSTEM_BOOTING &&