]> 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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 18 Nov 2022 23:59:02 +0000 (15:59 -0800)
commit5b185c2964cf787483fe6eb18700d7bb8999645d
treeb7a5cb3fe3017b5ff84c9bbda1404505b4f95d8e
parentd68437b6043fedda8116873e01d18780dd67fc88
Input: i8042 - fix leaking of platform device on module removal

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: 395523a57c9b ("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>
drivers/input/serio/i8042.c