projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e21a712
)
auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach
author
zhengbin
<zhengbin13@huawei.com>
Mon, 8 Jul 2019 12:42:18 +0000
(20:42 +0800)
committer
Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com>
Mon, 5 Aug 2019 20:33:31 +0000
(22:33 +0200)
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>
drivers/auxdisplay/panel.c
patch
|
blob
|
history
diff --git
a/drivers/auxdisplay/panel.c
b/drivers/auxdisplay/panel.c
index e06de63497cf8f00edde8d2d7bcffa5b25cc8e81..e6bd727da503ae12855c05ab9841bf544534860d 100644
(file)
--- a/
drivers/auxdisplay/panel.c
+++ b/
drivers/auxdisplay/panel.c
@@
-1617,6
+1617,8
@@
static void panel_attach(struct parport *port)
return;
err_lcd_unreg:
+ if (scan_timer.function)
+ del_timer_sync(&scan_timer);
if (lcd.enabled)
charlcd_unregister(lcd.charlcd);
err_unreg_device: