linux/drivers/char/tpm/eventlog
Jia Zhang bb3b6b0fc5 tpm: Simplify the measurements loop
The responsibility of tpm1_bios_measurements_start() is to walk over the
first *pos measurements, ensuring the skipped and to-be-read
measurements are not out-of-boundary.

This commit simplifies the loop by employing a do-while loop with
the necessary sanity check.

Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Reviewd-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2019-02-13 09:47:00 +02:00
..
acpi.c tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
common.c tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
common.h tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00
efi.c tpm: replace kmalloc() + memcpy() with kmemdup() 2018-05-14 13:59:52 +03:00
of.c tpm: replace kmalloc() + memcpy() with kmemdup() 2018-05-14 13:59:43 +03:00
tpm1.c tpm: Simplify the measurements loop 2019-02-13 09:47:00 +02:00
tpm2.c tpm: Move eventlog declarations to its own header 2018-05-09 14:45:46 +03:00