mctp: serial: cancel tx work on ldisc close
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 25 Nov 2021 06:07:37 +0000 (14:07 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:40:39 +0000 (19:40 -0800)
commit7bd9890f3d74e96f0e1a898f68decfc711de3001
treef5201716f23dde9151c6c96476955fd3231f9323
parent342e5f9fc73f7af0fa253c1ec8ea237512b5ebf5
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>
drivers/net/mctp/mctp-serial.c