]> git.baikalelectronics.ru Git - kernel.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>
Fri, 25 Nov 2022 16:42:21 +0000 (17:42 +0100)
commitc1f20099d52a2c12041a1b31d06b64777af99a81
tree3a1e273d8ed8bb4fae5ebeb42b2e95c6a60248c8
parent45ac623fbcd1fa2e7b2242bb041001d697c0fd3d
Input: i8042 - fix leaking of platform device on module removal

[ Upstream commit 45a6f0b8cad9e6382553a5b7facf980ac239f527 ]

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: 30db7cf5e5d3 ("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