Commit b287f69676a34a9fc341de4d79a9c74e1959dec6
1 parent
cbe224705e
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
arch/tile: avoid false corrupt frame warning in early boot
With lockstat we can end up trying to get a backtrace before "high_memory" is initialized, so don't worry about range testing if it is zero. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
arch/tile/kernel/process.c
... | ... | @@ -286,7 +286,7 @@ |
286 | 286 | static struct task_struct corrupt = { .comm = "<corrupt>" }; |
287 | 287 | struct task_struct *tsk = current; |
288 | 288 | if (unlikely((unsigned long)tsk < PAGE_OFFSET || |
289 | - (void *)tsk > high_memory || | |
289 | + (high_memory && (void *)tsk > high_memory) || | |
290 | 290 | ((unsigned long)tsk & (__alignof__(*tsk) - 1)) != 0)) { |
291 | 291 | pr_err("Corrupt 'current' %p (sp %#lx)\n", tsk, stack_pointer); |
292 | 292 | tsk = &corrupt; |