Sami Tolvanen 9f12e37cae Commit 9bb48c82aced ("tty: implement write_iter") converted the tty
layer to use write_iter. Fix the redirected_tty_write declaration
also in n_tty and change the comparisons to use write_iter instead of
write.

[ Also moved the declaration of redirected_tty_write() to the proper
  location in a header file. The reason for the bug was the bogus extern
  declaration in n_tty.c silently not matching the changed definition in
  tty_io.c, and because it wasn't in a shared header file, there was no
  cross-checking of the declaration.

  Sami noticed because Clang's Control Flow Integrity checking ended up
  incidentally noticing the inconsistent declaration.    - Linus ]

Fixes: 9bb48c82aced ("tty: implement write_iter")
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-01-25 12:08:07 -08:00
..
2021-01-24 10:56:45 -08:00
2019-11-13 19:01:14 +08:00
2020-06-27 16:21:20 +02:00
2020-08-31 07:19:25 +02:00
2020-10-28 13:44:43 +01:00
2020-04-27 09:33:21 +02:00
2020-12-04 16:54:35 +01:00
2020-12-07 10:19:31 +01:00