Skip to content
Commit b89114cd authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

efi: mokvar-table: fix some issues in new code



Fix a couple of issues in the new mokvar-table handling code, as
pointed out by Arvind and Boris:
- don't bother checking the end of the physical region against the start
  address of the mokvar table,
- ensure that we enter the loop with err = -EINVAL,
- replace size_t with unsigned long to appease pedantic type equality
  checks.

Reviewed-by: default avatarArvind Sankar <nivedita@alum.mit.edu>
Reviewed-by: default avatarLenny Szubowicz <lszubowi@redhat.com>
Tested-by: default avatarBorislav Petkov <bp@suse.de>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 612b5d50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment