diff options
| author | Alexey Dobriyan <[email protected]> | 2009-02-05 21:30:05 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-02-05 22:18:14 +0000 |
| commit | f01d1d546abb2f4028b5299092f529eefb01253a (patch) | |
| tree | 625a9f9923ae53cc9bf75cf46fcebbbeb8ac84a8 /fs/file_table.c | |
| parent | seq_file: move traverse so it can be used from seq_read (diff) | |
| download | kernel-f01d1d546abb2f4028b5299092f529eefb01253a.tar.gz kernel-f01d1d546abb2f4028b5299092f529eefb01253a.zip | |
seq_file: fix big-enough lseek() + read()
lseek() further than length of the file will leave stale ->index
(second-to-last during iteration). Next seq_read() will not notice
that ->f_pos is big enough to return 0, but will print last item
as if ->f_pos is pointing to it.
Introduced in commit cb510b8172602a66467f3551b4be1911f5a7c8c2
aka "seq_file: more atomicity in traverse()".
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions
