]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm: Poison initmem while freeing with free_reserved_area()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 4 Oct 2019 04:23:58 +0000 (09:53 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 16 Oct 2019 12:56:30 +0000 (13:56 +0100)
commit10ba5155b53321afb35e0f9356206f05bac408e2
tree53eb34b9662392068280a4b2f4841a442ffb9fdc
parent1db4e62fb53089cad010261b1e3c1f2c4a36ef80
arm64/mm: Poison initmem while freeing with free_reserved_area()

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: Mark Rutland <mark.rutland@arm.com>
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/init.c