Home
last modified time | relevance | path

Searched hist:bb3b6b0f (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/char/tpm/eventlog/
H A Dtpm1.cbb3b6b0f Fri Jan 11 02:59:32 CST 2019 Jia Zhang <zhang.jia@linux.alibaba.com> 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>
bb3b6b0f Fri Jan 11 02:59:32 CST 2019 Jia Zhang <zhang.jia@linux.alibaba.com> 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>