summaryrefslogtreecommitdiffstats
path: root/drivers/target/sbp
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2020-02-25 09:26:08 +0300
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2020-03-13 03:53:16 +0200
commitd7a47b96ed1102551eb7325f97937e276fb91045 (patch)
tree830a7fd0417c11d5e1d85cd34e00df55dfd3688a /drivers/target/sbp
parent805fa88e0780b7ce1cc9b649dd91a0a7164c6eb4 (diff)
downloadlinux-d7a47b96ed1102551eb7325f97937e276fb91045.tar.bz2
tpm: tpm1_bios_measurements_next should increase position index
If .next function does not change position index, following .show function will repeat output related to current position index. In case of /sys/kernel/security/tpm0/ascii_bios_measurements and binary_bios_measurements: 1) read after lseek beyound end of file generates whole last line. 2) read after lseek to middle of last line generates expected end of last line and unexpected whole last line once again. Cc: stable@vger.kernel.org # 4.19.x Fixes: 1f4aace60b0e ("fs/seq_file.c: simplify seq_file iteration code ...") Link: https://bugzilla.kernel.org/show_bug.cgi?id=206283 Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/target/sbp')
0 files changed, 0 insertions, 0 deletions