]> git.baikalelectronics.ru Git - kernel.git/commit
tty: fix up hung_up_tty_write() conversion
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2021 18:04:27 +0000 (10:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jan 2021 09:52:43 +0000 (10:52 +0100)
commit7c736430e24d2ba75a4d3f238a2e363eca71b98d
tree18e8b1c5bef4d51a54ac953c69e84279ff580aa6
parente1725d6b92e74e7e9c274f09c3928a890cfdd97c
tty: fix up hung_up_tty_write() conversion

In commit "tty: implement write_iter", I left the write_iter conversion
of the hung up tty case alone, because I incorrectly thought it didn't
matter.

Jiri showed me the errors of my ways, and pointed out the problems with
that incomplete conversion.  Fix it all up.

Reported-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/CAHk-=wh+-rGsa=xruEWdg_fJViFG8rN9bpLrfLz=_yBYh2tBhA@mail.gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c