diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index bf5ee6f741cd..070b6184642d 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -2294,7 +2294,7 @@ static int elf_core_dump(struct coredump_params *cprm) | |||
2294 | 2294 | ||
2295 | if (segs - 1 > ULONG_MAX / sizeof(*vma_filesz)) | 2295 | if (segs - 1 > ULONG_MAX / sizeof(*vma_filesz)) |
2296 | goto end_coredump; | 2296 | goto end_coredump; |
2297 | vma_filesz = vmalloc((segs - 1) * sizeof(*vma_filesz)); | 2297 | vma_filesz = vmalloc(array_size(sizeof(*vma_filesz), (segs - 1))); |
2298 | if (!vma_filesz) | 2298 | if (!vma_filesz) |
2299 | goto end_coredump; | 2299 | goto end_coredump; |
2300 | 2300 | ||