projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117cda9
)
arm64: hibernate: variable pudp is used instead of pd4dp
author
Pavel Tatashin
<pasha.tatashin@soleen.com>
Mon, 25 Jan 2021 19:19:07 +0000
(14:19 -0500)
committer
Will Deacon
<will@kernel.org>
Wed, 27 Jan 2021 15:41:11 +0000
(15:41 +0000)
There should be p4dp used when p4d page is allocated.
This is not a functional issue, but for the logical correctness this
should be fixed.
Fixes:
e9f6376858b9
("arm64: add support for folded p4d page tables")
Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
Link:
https://lore.kernel.org/r/20210125191923.1060122-3-pasha.tatashin@soleen.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hibernate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm64/kernel/hibernate.c
b/arch/arm64/kernel/hibernate.c
index 9c9f47e9f7f47eca751f2fe2e7fe0aa50b42d2ca..0a54d81c90f97b18cb8b6d8a1250d3f9d758cb7c 100644
(file)
--- a/
arch/arm64/kernel/hibernate.c
+++ b/
arch/arm64/kernel/hibernate.c
@@
-190,10
+190,10
@@
static int trans_pgd_map_page(pgd_t *trans_pgd, void *page,
pgdp = pgd_offset_pgd(trans_pgd, dst_addr);
if (pgd_none(READ_ONCE(*pgdp))) {
- p
u
dp = (void *)get_safe_page(GFP_ATOMIC);
- if (!p
u
dp)
+ p
4
dp = (void *)get_safe_page(GFP_ATOMIC);
+ if (!p
g
dp)
return -ENOMEM;
- pgd_populate(&init_mm, pgdp, p
u
dp);
+ pgd_populate(&init_mm, pgdp, p
4
dp);
}
p4dp = p4d_offset(pgdp, dst_addr);