]> 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 09:02:26 +0000 (10:02 +0100)
commit8bf2e8fe8a8e2e05246215697bb55f8901faef44
tree8ee1fab56044e3bded82c8a90a7955910f5f5dfb
parentf1b0b8c2b7e7f0e6c90ec09696d92b02b81d2307
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