Skip to content
Commit da7fbad0 authored by Peter Mitsis's avatar Peter Mitsis Committed by Anas Nashif
Browse files

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: default avatarPeter Mitsis <peter.mitsis@intel.com>
parent 7aa874a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment