Skip to content

Commit be9318c

Browse files
committed
Merge tag 'x86_sgx_for_6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull sgx update from Dave Hansen: - Use vmalloc_array() instead of vmalloc() * tag 'x86_sgx_for_6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/sgx: Use vmalloc_array() instead of vmalloc()
2 parents 563cb0b + f060c89 commit be9318c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/sgx/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ static bool __init sgx_setup_epc_section(u64 phys_addr, u64 size,
630630
if (!section->virt_addr)
631631
return false;
632632

633-
section->pages = vmalloc(nr_pages * sizeof(struct sgx_epc_page));
633+
section->pages = vmalloc_array(nr_pages, sizeof(struct sgx_epc_page));
634634
if (!section->pages) {
635635
memunmap(section->virt_addr);
636636
return false;

0 commit comments

Comments
 (0)