Commit 258634d5 authored by Chen Jun's avatar Chen Jun Committed by sanglipeng
Browse files

Input: i8042 - fix leaking of platform device on module removal

stable inclusion
from stable-v5.10.156
commit 3f25add5ecf88de0f8ff2b27b6c0731a1f1b38ed
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3f25add5ecf88de0f8ff2b27b6c0731a1f1b38ed



--------------------------------

[ Upstream commit 81cd7e84 ]

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: 9222ba68 ("Input: i8042 - add deferred probe support")
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Link: https://lore.kernel.org/r/20221109034148.23821-1-chenjun102@huawei.com


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent b69c0111
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment