diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-09-24 17:58:22 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-09-29 19:40:57 +0200 |
commit | b89114cd018cffa5deb7def1844ce1891efd4f96 (patch) | |
tree | 3978a612af031280c3b309cf3fe125989033f430 /drivers/firmware/efi/efivars.c | |
parent | cper,edac,efi: Memory Error Record: bank group/address and chip id (diff) | |
download | linux-b89114cd018cffa5deb7def1844ce1891efd4f96.tar.xz linux-b89114cd018cffa5deb7def1844ce1891efd4f96.zip |
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: Arvind Sankar <nivedita@alum.mit.edu>
Reviewed-by: Lenny Szubowicz <lszubowi@redhat.com>
Tested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/efivars.c')
0 files changed, 0 insertions, 0 deletions