summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2019-02-07 23:22:42 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2019-02-09 18:00:02 +0100
commit33a841ce5cef4ca6c18ad333248b6d273f54c839 (patch)
tree6db446b3098ff5985e56e4e4feb3ffd7c297a269 /drivers
parentInput: cap11xx - switch to using set_brightness_blocking() (diff)
downloadlinux-33a841ce5cef4ca6c18ad333248b6d273f54c839.tar.xz
linux-33a841ce5cef4ca6c18ad333248b6d273f54c839.zip
Input: ps2-gpio - flush TX work when closing port
To ensure that TX work is not running after serio port has been torn down, let's flush it when closing the port. Reported-by: Sven Van Asbroeck <thesven73@gmail.com> Acked-by: Danilo Krummrich <danilokrummrich@dk-develop.de> Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/serio/ps2-gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/serio/ps2-gpio.c b/drivers/input/serio/ps2-gpio.c
index c62cceb97bb1..5e8d8384aa2a 100644
--- a/drivers/input/serio/ps2-gpio.c
+++ b/drivers/input/serio/ps2-gpio.c
@@ -76,6 +76,7 @@ static void ps2_gpio_close(struct serio *serio)
{
struct ps2_gpio_data *drvdata = serio->port_data;
+ flush_delayed_work(&drvdata->tx_work);
disable_irq(drvdata->irq);
}