summaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/process.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-03-29 20:02:52 +0200
committerChris Metcalf <cmetcalf@tilera.com>2012-04-02 18:12:38 +0200
commitb287f69676a34a9fc341de4d79a9c74e1959dec6 (patch)
tree1db5f8cb448634f4925caa70275261314aa7720a /arch/tile/kernel/process.c
parentarch/tile: use 0 for IRQ_RESCHEDULE instead of 1 (diff)
downloadlinux-b287f69676a34a9fc341de4d79a9c74e1959dec6.tar.xz
linux-b287f69676a34a9fc341de4d79a9c74e1959dec6.zip
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>
Diffstat (limited to 'arch/tile/kernel/process.c')
-rw-r--r--arch/tile/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c
index ee01b1c683e4..2d5ef617bb39 100644
--- a/arch/tile/kernel/process.c
+++ b/arch/tile/kernel/process.c
@@ -286,7 +286,7 @@ struct task_struct *validate_current(void)
static struct task_struct corrupt = { .comm = "<corrupt>" };
struct task_struct *tsk = current;
if (unlikely((unsigned long)tsk < PAGE_OFFSET ||
- (void *)tsk > high_memory ||
+ (high_memory && (void *)tsk > high_memory) ||
((unsigned long)tsk & (__alignof__(*tsk) - 1)) != 0)) {
pr_err("Corrupt 'current' %p (sp %#lx)\n", tsk, stack_pointer);
tsk = &corrupt;