Skip to content
Commit 1dfa2812 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: reduce raciness when input handlers disconnect



There is a race between input handler's release() and disconnect()
methods: when input handler disconnects it wakes up all regular
users and then process to walk user list to wake up async. users.
While disconnect() walks the list release() removes elements of
the same list causing oopses.

While this is not a substibute for proper locking we can reduce
odds of getting an oops if we wake up normal readers after walking
the list.

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 26be5a50
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