projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kfence: Defer the assignment of the local variable addr
[platform/kernel/linux-rpi.git]
/
mm
/
kfence
/
core.c
diff --git
a/mm/kfence/core.c
b/mm/kfence/core.c
index
dad3c0e
..
e124fff
100644
(file)
--- a/
mm/kfence/core.c
+++ b/
mm/kfence/core.c
@@
-566,13
+566,14
@@
static void rcu_guarded_free(struct rcu_head *h)
*/
static unsigned long kfence_init_pool(void)
{
*/
static unsigned long kfence_init_pool(void)
{
- unsigned long addr
= (unsigned long)__kfence_pool
;
+ unsigned long addr;
struct page *pages;
int i;
if (!arch_kfence_init_pool())
struct page *pages;
int i;
if (!arch_kfence_init_pool())
- return
addr
;
+ return
(unsigned long)__kfence_pool
;
+ addr = (unsigned long)__kfence_pool;
pages = virt_to_page(__kfence_pool);
/*
pages = virt_to_page(__kfence_pool);
/*