Skip to content
Commit b925ef37 authored by Anton Volkov's avatar Anton Volkov Committed by David S. Miller
Browse files

hysdn: fix to a race condition in put_log_buffer



The synchronization type that was used earlier to guard the loop that
deletes unused log buffers may lead to a situation that prevents any
thread from going through the loop.

The patch deletes previously used synchronization mechanism and moves
the loop under the spin_lock so the similar cases won't be feasible in
the future.

Found by by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAnton Volkov <avolkov@ispras.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec2c6726
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment