Skip to content

Commit

Permalink
Merge pull request #6 from offsoc/autofix/alert-43-693dc7a2d4
Browse files Browse the repository at this point in the history
Fix code scanning alert torvalds#43: Multiplication result converted to larger type
  • Loading branch information
offsoc authored Sep 23, 2024
2 parents 833c2e2 + c546a52 commit 99a884b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firmware/efi/memattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ int __init efi_memattr_init(void)
goto unmap;
}

tbl_size = sizeof(*tbl) + tbl->num_entries * tbl->desc_size;
tbl_size = sizeof(*tbl) + (unsigned long)tbl->num_entries * tbl->desc_size;
memblock_reserve(efi_mem_attr_table, tbl_size);
set_bit(EFI_MEM_ATTR, &efi.flags);

Expand Down

0 comments on commit 99a884b

Please sign in to comment.