]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: i8042 - fix leaking of platform device on module removal
authorChen Jun <chenjun102@huawei.com>
Fri, 18 Nov 2022 23:40:03 +0000 (15:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:27:54 +0000 (09:27 +0100)
commita32cd7feb0127bf629a82686b6e2c128139a86e5
treef9dd0b3eeb457725cd54578b520e2523dbcc446a
parent2d458046df634088611d44fd77f45465e833ef78
Input: i8042 - fix leaking of platform device on module removal

[ Upstream commit 81cd7e8489278d28794e7b272950c3e00c344e44 ]

Avoid resetting the module-wide i8042_platform_device pointer in
i8042_probe() or i8042_remove(), so that the device can be properly
destroyed by i8042_exit() on module unload.

Fixes: 9222ba68c3f4 ("Input: i8042 - add deferred probe support")
Signed-off-by: Chen Jun <chenjun102@huawei.com>
Link: https://lore.kernel.org/r/20221109034148.23821-1-chenjun102@huawei.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/serio/i8042.c