um: Reap winch thread if it fails
authorBenjamin Berg <benjamin@sipsolutions.net>
Fri, 10 Nov 2023 11:03:43 +0000 (12:03 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 4 Jan 2024 22:51:23 +0000 (23:51 +0100)
commit139e6e8ef6ee9a56fc1737240ecd8402fbcadd82
tree76dd2aadcfe4fdd3892f9646e36714e2a0f2b407
parent1818b8406678a78b823dad44c91580f859403ced
um: Reap winch thread if it fails

When the winch thread runs into an error condition, it would exit(1) and
never be reaped until shutdown time. Change this to write a command byte
which causes the driver to kill it, therefore reaping the child.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/chan_user.c
arch/um/drivers/line.c