summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-12-11 00:45:27 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-11 02:41:10 +0100
commit57a059187d5ba5592e36c6f23d046bc37616f346 (patch)
tree49c68a0167f2c148e1e275cb6b728825be152b02 /drivers/video
parentexit: reparent: use ->ptrace_entry rather than ->sibling for EXIT_DEAD tasks (diff)
downloadlinux-57a059187d5ba5592e36c6f23d046bc37616f346.tar.xz
linux-57a059187d5ba5592e36c6f23d046bc37616f346.zip
exit: reparent: cleanup the changing of ->parent
1. Cosmetic, but "if (t->parent == father)" looks a bit confusing. We need to change t->parent if and only if t is not traced. 2. If we actually want this BUG_ON() to ensure that parent/ptrace match each other, then we should also take ptrace_reparented() case into account too. 3. Change this code to use for_each_thread() instead of deprecated while_each_thread(). [dan.carpenter@oracle.com: silence a bogus static checker warning] Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Aaron Tomlin <atomlin@redhat.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com>, Cc: Sterling Alexander <stalexan@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Roland McGrath <roland@hack.frob.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video')
0 files changed, 0 insertions, 0 deletions