mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
The spsc_queue_peek function is accessing queue->head which belongs to the consumer thread and shouldn't be accessed by the producer This is fixing a rare race condition when destroying entities. Signed-off-by: Christian König <[email protected]> Acked-by: Andrey Grodzovsky <[email protected]> Reviewed-by: [email protected] Signed-off-by: Alex Deucher <[email protected]>