Skip to content

Commit

Permalink
parisc: Zero-initialize newly alloced memblock
Browse files Browse the repository at this point in the history
Commit 4fe9e1d ("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: 4fe9e1d ("parisc: Drop bootmem and switch to memblock")
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Helge Deller committed Oct 11, 2016
1 parent f79b076 commit e3b6a02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/parisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e3b6a02

Please sign in to comment.