sched: Only call post_select() if task is not in error state.
authorAndre Noll <maan@systemlinux.org>
Tue, 15 Mar 2011 21:05:24 +0000 (22:05 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 15 Mar 2011 21:05:24 +0000 (22:05 +0100)
commit886c74b9356c905b528d51ac6ab1628496caf3f0
treebe4c489c22103c184a544b3d9c91cf55f73a238c
parent64a9cf5877ab9ecf6410596d657914f26830d3f7
sched: Only call post_select() if task is not in error state.

Fixes a bug introduced in 86611501 which caused para_audiod to segfault
if the connection to para_server terminated unexpectedly.

para_audiod relies (in kill_btrn()) on a task's ->post_select method
never being called if t->error is negative.
sched.c