Skip to content

Commit 33a841c

Browse files
committed
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>
1 parent 6284428 commit 33a841c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/serio/ps2-gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ static void ps2_gpio_close(struct serio *serio)
7676
{
7777
struct ps2_gpio_data *drvdata = serio->port_data;
7878

79+
flush_delayed_work(&drvdata->tx_work);
7980
disable_irq(drvdata->irq);
8081
}
8182

0 commit comments

Comments
 (0)