commit | da7fbad057013a8d9a280d96afe81a0cf409b7a6 | [log] [tgz] |
---|---|---|
author | Peter Mitsis <peter.mitsis@intel.com> | Fri Oct 01 15:36:27 2021 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Jan 10 12:17:14 2022 -0500 |
tree | 718c5d2fa4b20d466f894da8d325a6d3a52e70b8 | |
parent | 7aa874a2516c92a5738515b122636097c41c57a9 [diff] |
kernel: pipes: fix race condition Fixes a race condition in the k_pipe_cleanup() routine by adding a spinlock. Additionally, internal counters are now reset after freeing the buffer as the pipe has now become a bufferless pipe. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>