From: Helge Deller Date: Tue, 11 Oct 2016 18:40:02 +0000 (+0200) Subject: parisc: Zero-initialize newly alloced memblock X-Git-Tag: v4.9-rc1~39^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3b6a02816ebbda3acfde2f079446ba92c97e70b;p=platform%2Fkernel%2Flinux-exynos.git parisc: Zero-initialize newly alloced memblock Commit 4fe9e1d957e4 ("parisc: Drop bootmem and switch to memblock") switched to the memblock allocator, but missed to zero-initialize the newly allocated memblocks. This lead to crashes on some machines like the rp3410. Fixes: 4fe9e1d957e4 ("parisc: Drop bootmem and switch to memblock") Signed-off-by: Helge Deller --- diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 356f384..e02ada3 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -105,6 +105,8 @@ static void * __init get_memblock(unsigned long size) else panic("get_memblock() failed.\n"); + memset(__va(phys), 0, size); + return __va(phys); }