s390/vmem: fix vmem_add_range for 4-level paging
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 21 Aug 2020 16:27:36 +0000 (18:27 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 26 Aug 2020 16:07:05 +0000 (18:07 +0200)
commitbffc2f7aa96343f91931272d7a8a2d8d925e1ab2
tree855eed55c1c17572f79f94b60bef421601e28680
parent1196f12a2c960951d02262af25af0bb1775ebcc2
s390/vmem: fix vmem_add_range for 4-level paging

The kernel currently crashes if 4-level paging is used. Add missing
p4d_populate for just allocated pud entry.

Fixes: 3e0d3e408e63 ("s390/vmem: consolidate vmem_add_range() and vmem_remove_range()")
Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/vmem.c