diff options
| author | Oleg Nesterov <[email protected]> | 2014-10-09 15:25:32 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-10-09 22:25:49 -0400 |
| commit | 0d5f5f45f9a4f1f6b694c37f5142ebea893f0a15 (patch) | |
| tree | 6b9a19ef25763611d857d19f129ca74c186b46c5 /tools/perf/scripts/python/bin | |
| parent | 23d54837e4f3a44ad4514d5eae8245c2250217ff (diff) | |
fs/proc/task_mmu.c: shift "priv->task = NULL" from m_start() to m_stop()
1. There is no reason to reset ->tail_vma in m_start(), if we return
IS_ERR_OR_NULL() it won't be used.
2. m_start() also clears priv->task to ensure that m_stop() won't use
the stale pointer if we fail before get_task_struct(). But this is
ugly and confusing, move this initialization in m_stop().
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Cyrill Gorcunov <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions