diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-04-19 13:47:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-06-24 17:07:10 +0300 |
commit | 57307f1b6edd781fba2bf9f7ec5f4d17a881ea54 (patch) | |
tree | bdd61bb21ce354c61af850222142c7c3dbc766ed /arch/powerpc/mm/ioremap_64.c | |
parent | 0e8554b5d7801b0aebc6c348a0a9f7706aa17b3b (diff) | |
download | linux-57307f1b6edd781fba2bf9f7ec5f4d17a881ea54.tar.xz |
powerpc/mm: Leave a gap between early allocated IO areas
Vmalloc system leaves a gap between allocated areas. It helps catching
overflows.
Do the same for IO areas which are allocated with early_ioremap_range()
until slab_is_available().
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c433e358190fb5d47650463ea1ab755fc7b73e6e.1618828806.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/mm/ioremap_64.c')
-rw-r--r-- | arch/powerpc/mm/ioremap_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/ioremap_64.c b/arch/powerpc/mm/ioremap_64.c index ba5cbb0d66bd..3acece00b33e 100644 --- a/arch/powerpc/mm/ioremap_64.c +++ b/arch/powerpc/mm/ioremap_64.c @@ -38,7 +38,7 @@ void __iomem *__ioremap_caller(phys_addr_t addr, unsigned long size, return NULL; ret = (void __iomem *)ioremap_bot + offset; - ioremap_bot += size; + ioremap_bot += size + PAGE_SIZE; return ret; } |