Skip to content

Commit f471c65

Browse files
tititiou36Alexander Gordeev
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/0756118c9058338f3040edb91971d0bfd100027b.1686688212.git.christophe.jaillet@wanadoo.fr Signed-off-by: Alexander Gordeev <[email protected]>
1 parent 03c5c83 commit f471c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/crash_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,9 @@ static size_t get_elfcorehdr_size(int mem_chunk_cnt)
568568
int elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size)
569569
{
570570
Elf64_Phdr *phdr_notes, *phdr_loads;
571+
size_t alloc_size;
571572
int mem_chunk_cnt;
572573
void *ptr, *hdr;
573-
u32 alloc_size;
574574
u64 hdr_off;
575575

576576
/* If we are not in kdump or zfcp/nvme dump mode return */

0 commit comments

Comments
 (0)