commit | 4d33007486e30aaa4772ed3493259d98fcaa3d1e | [log] [tgz] |
---|---|---|
author | Jennifer Williams <jennifer.m.williams@intel.com> | Tue Sep 29 15:16:39 2020 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Oct 07 17:10:36 2020 -0400 |
tree | 7e42145a9deaf355641cae02aef01d63896693f9 | |
parent | 2ffbad494189f6ec68af92ee12e0ec9f8ae47f66 [diff] |
kernel: stack: fix stack_push spinlock and return The z_impl_k_stack_push() has a spinlock that is set after stack member access, which could cause race conditions and used multiple return statements. This commit - moves the lock before the CHECKIF - implements goto for flow of lock, reschedule, and unlock - uses ret for single return at the end Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>