Commit e3b6a028 authored by Helge Deller's avatar Helge Deller

parisc: Zero-initialize newly alloced memblock

Commit 4fe9e1d9 ("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: 4fe9e1d9 ("parisc: Drop bootmem and switch to memblock")
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent f79b076e
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment