Skip to content
Commit d6d79a78 authored by Jiri Pirko's avatar Jiri Pirko Committed by Dmitry Torokhov
Browse files

Input: atkbd - cancel delayed work before freeing its structure



Pointed out by Oleg Nesterov. Since delayed work is used here, use of
flush_scheduled_work() is not sufficient in atkbd_disconnect(). It does
not wait for scheduled delayed work to finish. This patch prevents
delayed work to be processed after freeing atkbd structure (used struct
delayed_work is part of atkbd) by cancelling this delayed work.

Signed-off-by: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a8215b81
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