]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Nov 2020 08:56:59 +0000 (09:56 +0100)
commit640ede0a21a0b9bd68e47ccbca87fd747e38ea0a
treefa0679bc61a16e5368a554051ef8df9f7fd1fd17
parent9ed6dbcb707742e89c5825a3743793ebf50a1bb9
Input: sunkbd - avoid use-after-free in teardown paths

commit 77e70d351db7de07a46ac49b87a6c3c7a60fca7e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/keyboard/sunkbd.c