diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2021-01-25 20:09:25 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-01-25 21:08:07 +0100 |
commit | 9f12e37cae44a96132fc3031535a0b165486941a (patch) | |
tree | d9cd1e0696432dde2a714f2abbe36685b2b78c72 /fs/pipe.c | |
parent | Merge tag 'printk-for-5.11-urgent-fixup' of git://git.kernel.org/pub/scm/linu... (diff) | |
download | linux-9f12e37cae44a96132fc3031535a0b165486941a.tar.xz linux-9f12e37cae44a96132fc3031535a0b165486941a.zip |
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>
Diffstat (limited to 'fs/pipe.c')
0 files changed, 0 insertions, 0 deletions