]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atkbd - cancel delayed work before freeing its structure
authorJiri Pirko <jpirko@redhat.com>
Tue, 11 Nov 2008 14:43:21 +0000 (09:43 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Nov 2008 16:31:59 +0000 (11:31 -0500)
commit1f1234b52b2e32b88d6558d6fe8a1a5afa9a9eaa
tree5d31c85df3b3d8483a832d8d0926f8f6484f66ea
parent3cc6235783794574b4664950342177beb98e7d67
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: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/atkbd.c