On Fri, Oct 04, 2019 at 09:53:58AM +0530, Anshuman Khandual wrote: > Platform implementation for free_initmem() should poison the memory while > freeing it up. Hence pass across POISON_FREE_INITMEM while calling into > free_reserved_area(). The same is being followed in the generic fallback > for free_initmem() and some other platforms overriding it. > > Cc: Catalin Marinas <[email protected]> > Cc: Will Deacon <[email protected]> > Cc: Mark Rutland <[email protected]> > Cc: [email protected] > Signed-off-by: Anshuman Khandual <[email protected]> > --- > arch/arm64/mm/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c > index 45c00a54909c..ea7d38011e83 100644 > --- a/arch/arm64/mm/init.c > +++ b/arch/arm64/mm/init.c > @@ -571,7 +571,7 @@ void free_initmem(void) > { > free_reserved_area(lm_alias(__init_begin), > lm_alias(__init_end), > - 0, "unused kernel"); > + POISON_FREE_INITMEM, "unused kernel");
Acked-by: Will Deacon <[email protected]> Will

