]> git.baikalelectronics.ru Git - kernel.git/commit
tty: fix up hung_up_tty_read() conversion
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2021 18:08:15 +0000 (10:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jan 2021 09:53:07 +0000 (10:53 +0100)
commit184e24a0deb4d300cd610999c8c0b2d11adcd7e8
tree4025f39e38899072bea2ad173a0ae65fc42e4df9
parent0d095dc2355cf378e25bc0d2f0f999f1f6f8d687
tty: fix up hung_up_tty_read() conversion

In commit "tty: implement read_iter", I left the read_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