]> git.baikalelectronics.ru Git - kernel.git/commit
Input: i8042 - fix refount leak on sparc
authorLiang He <windhl@126.com>
Sat, 1 Oct 2022 21:42:24 +0000 (14:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Oct 2022 05:26:53 +0000 (22:26 -0700)
commit34bd08c3ca25abd2056a9cf70cfa8e5cbbea9354
treebed0261158471d5a5d876af7c43519105d8b2191
parentf3b6a248cab075f6fd78d4d3ebb0531dd9c99c72
Input: i8042 - fix refount leak on sparc

In i8042_platform_init() and i8042_platform_exit(), we should call
of_node_put() for the reference 'root' returned by
of_find_node_by_path() which has increased the refcount.

Fixes: 5a2d7b904e01 ("[SERIO] i8042-sparcio.h: Convert to of_driver framework.")
Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220711064300.358757-1-windhl@126.com
[dtor: rearranged i8042_is_mr_coffee() a bit]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/i8042-sparcio.h