mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
A race shouldn't happen since all workqueues or handlers are canceled or flushed before the event buffer is freed. A warning is triggered now if the buffer is freed too early. Also, this patch adds some comments about event buffer protection, reworks some code and adds code to clear buffer_pos during alloc and free of the event buffer. Cc: David Rientjes <[email protected]> Cc: Stephane Eranian <[email protected]> Signed-off-by: Robert Richter <[email protected]>