Skip to content

Commit e4cb955

Browse files
nivedita76ingomolnar
authored andcommitted
x86/kaslr: Make minimum/image_size 'unsigned long'
Change type of minimum/image_size arguments in process_mem_region to 'unsigned long'. These actually can never be above 4G (even on x86_64), and they're 'unsigned long' in every other function except this one. Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200728225722.67457-19-nivedita@alum.mit.edu
1 parent 4268b4d commit e4cb955

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/boot/compressed/kaslr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ static void __process_mem_region(struct mem_vector *entry,
649649
}
650650

651651
static bool process_mem_region(struct mem_vector *region,
652-
unsigned long long minimum,
653-
unsigned long long image_size)
652+
unsigned long minimum,
653+
unsigned long image_size)
654654
{
655655
int i;
656656
/*

0 commit comments

Comments
 (0)