commit | 8f488ff32e655f754c9aa6ab2f5c865c004a1c73 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Thu Sep 13 11:43:59 2018 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Tue Sep 18 13:57:39 2018 -0400 |
tree | 75d26fbd879f8a9707134d618e535d015fc1d159 | |
parent | c806ac3d36691fcae8c7af87dda2a43621efcb35 [diff] |
kernel: stack: Fix k_stack_pop api _pend_current_thread can return any arbitrary value set by _set_thred_return_value(), it happens that most cases set 0. This function can not rely on this behavior otherwise it may return an invalid value and/or not set data's value. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>