diff options
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r-- | lib/debugobjects.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 85b18d79be89..f86196390cfd 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c | |||
@@ -226,15 +226,13 @@ debug_object_fixup(int (*fixup)(void *addr, enum debug_obj_state state), | |||
226 | 226 | ||
227 | static void debug_object_is_on_stack(void *addr, int onstack) | 227 | static void debug_object_is_on_stack(void *addr, int onstack) |
228 | { | 228 | { |
229 | void *stack = current->stack; | ||
230 | int is_on_stack; | 229 | int is_on_stack; |
231 | static int limit; | 230 | static int limit; |
232 | 231 | ||
233 | if (limit > 4) | 232 | if (limit > 4) |
234 | return; | 233 | return; |
235 | 234 | ||
236 | is_on_stack = (addr >= stack && addr < (stack + THREAD_SIZE)); | 235 | is_on_stack = object_is_on_stack(addr); |
237 | |||
238 | if (is_on_stack == onstack) | 236 | if (is_on_stack == onstack) |
239 | return; | 237 | return; |
240 | 238 | ||