mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
s390/crash: use the correct type for memory allocation
get_elfcorehdr_size() returns a size_t, so there is no real point to store it in a u32. Turn 'alloc_size' into a size_t. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/0756118c9058338f3040edb91971d0bfd100027b.1686688212.git.christophe.jaillet@wanadoo.fr Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
committed by
Alexander Gordeev
parent
03c5c83b70
commit
f471c6585c
@@ -568,9 +568,9 @@ static size_t get_elfcorehdr_size(int mem_chunk_cnt)
|
|||||||
int elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size)
|
int elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size)
|
||||||
{
|
{
|
||||||
Elf64_Phdr *phdr_notes, *phdr_loads;
|
Elf64_Phdr *phdr_notes, *phdr_loads;
|
||||||
|
size_t alloc_size;
|
||||||
int mem_chunk_cnt;
|
int mem_chunk_cnt;
|
||||||
void *ptr, *hdr;
|
void *ptr, *hdr;
|
||||||
u32 alloc_size;
|
|
||||||
u64 hdr_off;
|
u64 hdr_off;
|
||||||
|
|
||||||
/* If we are not in kdump or zfcp/nvme dump mode return */
|
/* If we are not in kdump or zfcp/nvme dump mode return */
|
||||||
|
Reference in New Issue
Block a user