kernel: Avoid double lock in wait_for_child with child == team.
commitafe8d6621dbaf7afee3c16762585b88b7379c22e
authorMichael Lotz <mmlr@mlotz.ch>
Wed, 3 Jan 2018 00:10:29 +0000 (3 01:10 +0100)
committerMichael Lotz <mmlr@mlotz.ch>
Wed, 3 Jan 2018 00:10:29 +0000 (3 01:10 +0100)
tree9bc9a0e8a000dda21501315982e78768840f4fe8
parentb1ab02c43433de0fd1e2a47415aca7647b106aef
kernel: Avoid double lock in wait_for_child with child == team.

When wait_for_child was called with a child argument equal to the
current team, the team was locked again to check if it was a child of
itself.

This is now handled the same way as on other systems, where this case
results in ECHILD (and not EINVAL).
src/system/kernel/team.cpp