summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed/kaslr.c
diff options
context:
space:
mode:
authorJing Yangyang <jing.yangyang@zte.com.cn>2021-08-24 09:05:15 +0200
committerBorislav Petkov <bp@suse.de>2021-08-24 10:54:15 +0200
commit5b3fd8aa5df0244fc19f2572598dee406bcc6b07 (patch)
treecae4b44b63c2870907ef38e58a61a87399b1b53a /arch/x86/boot/compressed/kaslr.c
parentx86/power: Fix kernel-doc warnings in cpu.c (diff)
downloadlinux-5b3fd8aa5df0244fc19f2572598dee406bcc6b07.tar.xz
linux-5b3fd8aa5df0244fc19f2572598dee406bcc6b07.zip
x86/kaslr: Have process_mem_region() return a boolean
Fix the following coccicheck warning: ./arch/x86/boot/compressed/kaslr.c:671:10-11:WARNING:return of 0/1 in function 'process_mem_region' with return type bool Generated by: scripts/coccinelle/misc/boolreturn.cocci Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20210824070515.61065-1-deng.changcheng@zte.com.cn
Diffstat (limited to 'arch/x86/boot/compressed/kaslr.c')
-rw-r--r--arch/x86/boot/compressed/kaslr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c
index e36690778497..67c3208b668a 100644
--- a/arch/x86/boot/compressed/kaslr.c
+++ b/arch/x86/boot/compressed/kaslr.c
@@ -668,7 +668,7 @@ static bool process_mem_region(struct mem_vector *region,
if (slot_area_index == MAX_SLOT_AREA) {
debug_putstr("Aborted e820/efi memmap scan when walking immovable regions(slot_areas full)!\n");
- return 1;
+ return true;
}
}
#endif