task: Initialize exit code

This patch makes sure the task context's exit_code is initialized at both task
creation and scheduling for cases where a task is waited on without it ever
being executed.

Signed-off-by: Yuji Mano <yuji.mano@am.sony.com>
Acked-by: Kazunori Asayama <asayama@sm.sony.co.jp>
2 files changed