Input: sunkbd - avoid use-after-free in teardown paths
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 26 Oct 2020 20:36:17 +0000 (13:36 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 9 Nov 2020 05:59:07 +0000 (21:59 -0800)
commit77e70d351db7de07a46ac49b87a6c3c7a60fca7e
treeb671748da24286f9eb0a3f923627c580de30ba2b
parentb1884583fcd17d6a1b1bba94bbb5826e6b5c6e17
Input: sunkbd - avoid use-after-free in teardown paths

We need to make sure we cancel the reinit work before we tear down the
driver structures.

Reported-by: Bodong Zhao <nopitydays@gmail.com>
Tested-by: Bodong Zhao <nopitydays@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/sunkbd.c