Home
last modified time | relevance | path

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

/linux/drivers/char/tpm/eventlog/
H A Dtpm1.cdiff bb3b6b0fc57182b568ded61c55eff8a02fcfe27b Fri Jan 11 09:59:32 CET 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>