aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorGrygorii Strashko <[email protected]>2013-11-23 14:42:18 -0500
committerSantosh Shilimkar <[email protected]>2013-11-23 17:58:35 -0500
commit8e58caefd96c8ee249ab26a2fe00aab3785df9ea (patch)
treecc2ddf592d0440e0bd75f084db57b867dea27d8a /net/lapb/lapb_out.c
parentb3ba41f28f7fe147c23bfadf6280b3492c9696b1 (diff)
ARM: mm: Don't allow resizing of memblock data until "low" memory is not mapped
If allowed by call to memblock_allow_resize() - The Memblock core will try to allocate additional memory and rearrange its internal data in case, if there are more then INIT_MEMBLOCK_REGIONS(128) memory regions of any type have been allocated. If this happens before Low memory is mapped (which is done now by map_lowmem()) the system will hang, because the Memblock core will try to operate with virtual addresses which aren't mapped yet. In ARM code, the memblock resizing is allowed (memblock_allow_resize()) from arm_memblock_init() which is called before map_lowmem(), so this may lead to an error as described above. Hence, allow Memblock resizing later during init, from bootmem_init() when all appropriate mappings are ready. Cc: Russell King <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Nicolas Pitre <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Signed-off-by: Santosh Shilimkar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions