Skip to content
Commit 1be72c8e authored by Shuai Xue's avatar Shuai Xue Committed by Ard Biesheuvel
Browse files

efi: cper: check section header more appropriately



When checking a generic status block, we iterate over all the generic data
blocks. The loop condition checks that the generic data block is valid.
Because the size of data blocks (excluding error data) may vary depending
on the revision and the revision is contained within the data block, we
should ensure that enough of the current data block is valid appropriately
for different revision.

Signed-off-by: default avatarShuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent b31eea2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment