mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
parisc: Zero-initialize newly alloced memblock
Commit4fe9e1d957
("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:4fe9e1d957
("parisc: Drop bootmem and switch to memblock") Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
f79b076eb3
commit
e3b6a02816
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user