diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2021-11-25 07:07:37 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-26 04:40:39 +0100 |
commit | 7bd9890f3d74e96f0e1a898f68decfc711de3001 (patch) | |
tree | f5201716f23dde9151c6c96476955fd3231f9323 /drivers/net/mctp | |
parent | Merge branch 'net-ipa-small-collected-improvements' (diff) | |
download | linux-7bd9890f3d74e96f0e1a898f68decfc711de3001.tar.xz linux-7bd9890f3d74e96f0e1a898f68decfc711de3001.zip |
mctp: serial: cancel tx work on ldisc close
We want to ensure that the tx work has finished before returning from
the ldisc close op, so do a synchronous cancel.
Reported-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mctp')
-rw-r--r-- | drivers/net/mctp/mctp-serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/mctp/mctp-serial.c b/drivers/net/mctp/mctp-serial.c index 9ac0e187f36e..85b407f4df11 100644 --- a/drivers/net/mctp/mctp-serial.c +++ b/drivers/net/mctp/mctp-serial.c @@ -479,6 +479,7 @@ static void mctp_serial_close(struct tty_struct *tty) int idx = dev->idx; unregister_netdev(dev->netdev); + cancel_work_sync(&dev->tx_work); ida_free(&mctp_serial_ida, idx); } |