We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d2f04 commit 7bee31aCopy full SHA for 7bee31a
arch/powerpc/mm/book3s32/mmu.c
@@ -191,10 +191,17 @@ static bool is_module_segment(unsigned long addr)
191
{
192
if (!IS_ENABLED(CONFIG_MODULES))
193
return false;
194
+#ifdef MODULES_VADDR
195
+ if (addr < ALIGN_DOWN(MODULES_VADDR, SZ_256M))
196
+ return false;
197
+ if (addr >= ALIGN(MODULES_END, SZ_256M))
198
199
+#else
200
if (addr < ALIGN_DOWN(VMALLOC_START, SZ_256M))
201
202
if (addr >= ALIGN(VMALLOC_END, SZ_256M))
203
204
+#endif
205
return true;
206
}
207
0 commit comments