]> git.ipfire.org Git - people/arne_f/kernel.git/commit
auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach
authorzhengbin <zhengbin13@huawei.com>
Mon, 8 Jul 2019 12:42:18 +0000 (20:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:20:43 +0000 (10:20 +0200)
commit4455bacd144e5df9ffc7f4c5874310f92f355b31
treeca14d076b525e4075cb43d5fe7c1712f562a3f05
parentac439a219aeb592e813d83b96ecda23328e1a817
auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach

[ Upstream commit b33d567560c1aadf3033290d74d4fd67af47aa61 ]

In panel_attach, if misc_register fails, we need to delete scan_timer,
which was setup in keypad_init->init_scan_timer.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/auxdisplay/panel.c