OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
342e5f9
)
mctp: serial: cancel tx work on ldisc close
author
Jeremy Kerr
<jk@codeconstruct.com.au>
Thu, 25 Nov 2021 06:07:37 +0000
(14:07 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 26 Nov 2021 03:40:39 +0000
(19:40 -0800)
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>
drivers/net/mctp/mctp-serial.c
patch
|
blob
|
history
diff --git
a/drivers/net/mctp/mctp-serial.c
b/drivers/net/mctp/mctp-serial.c
index
9ac0e18
..
85b407f
100644
(file)
--- 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);
}