diff options
Diffstat (limited to 'fs/proc/array.c')
-rw-r--r-- | fs/proc/array.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 79375fc115d2..d67a72dcb92c 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c | |||
@@ -430,8 +430,11 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns, | |||
430 | * safe because the task has stopped executing permanently. | 430 | * safe because the task has stopped executing permanently. |
431 | */ | 431 | */ |
432 | if (permitted && (task->flags & PF_DUMPCORE)) { | 432 | if (permitted && (task->flags & PF_DUMPCORE)) { |
433 | eip = KSTK_EIP(task); | 433 | if (try_get_task_stack(task)) { |
434 | esp = KSTK_ESP(task); | 434 | eip = KSTK_EIP(task); |
435 | esp = KSTK_ESP(task); | ||
436 | put_task_stack(task); | ||
437 | } | ||
435 | } | 438 | } |
436 | } | 439 | } |
437 | 440 | ||