linux_dsm_epyc7002/drivers/char/tpm/eventlog
Jia Zhang 64494d39ff tpm: Fix off-by-one when reading binary_bios_measurements
It is unable to read the entry when it is the only one in
binary_bios_measurements:

00000000  00 00 00 00 08 00 00 00  c4 2f ed ad 26 82 00 cb
00000010  1d 15 f9 78 41 c3 44 e7  9d ae 33 20 00 00 00 00
00000020

This is obviously a firmware problem on my linux machine:

	Manufacturer: Inspur
	Product Name: SA5212M4
	Version: 01

However, binary_bios_measurements should return it any way,
rather than nothing, after all its content is completely
valid.

Fixes: 55a82ab318 ("tpm: add bios measurement log")
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: Fix off-by-one when reading binary_bios_measurements 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