OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6426773
)
x86/kaslr: Fix process_mem_region()'s return value
author
Jiapeng Chong
<jiapeng.chong@linux.alibaba.com>
Thu, 21 Apr 2022 20:25:56 +0000
(
04:25
+0800)
committer
Borislav Petkov
<bp@suse.de>
Sat, 19 Nov 2022 16:35:10 +0000
(17:35 +0100)
Fix the following coccicheck warning:
./arch/x86/boot/compressed/kaslr.c:670:8-9: WARNING: return of 0/1 in
function 'process_mem_region' with return type bool.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lore.kernel.org/r/20220421202556.129799-1-jiapeng.chong@linux.alibaba.com
arch/x86/boot/compressed/kaslr.c
patch
|
blob
|
history
diff --git
a/arch/x86/boot/compressed/kaslr.c
b/arch/x86/boot/compressed/kaslr.c
index
e476bcb
..
454757f
100644
(file)
--- 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,
}
}
#endif
- return
0
;
+ return
false
;
}
#ifdef CONFIG_EFI