]> Git Repo - linux.git/commit
memblock: don't silently align size in memblock_virt_alloc()
authorYinghai Lu <[email protected]>
Tue, 28 Jan 2014 01:06:52 +0000 (17:06 -0800)
committerLinus Torvalds <[email protected]>
Tue, 28 Jan 2014 05:02:39 +0000 (21:02 -0800)
commitfb5bb60cd004a00c1d11db680a37942ecdedb1c5
tree4abcd05569f18c8d1d5b08ccbefd54aacc9ed0ad
parent4ce7a8697cb795fda6bdf082c14743b4bcd551c3
memblock: don't silently align size in memblock_virt_alloc()

In original __alloc_memory_core_early() for bootmem wrapper, we do not
align size silently.

We should not do that, as later free with old size will leave some range
not freed.

It's obvious that code is copied from memblock_base_nid(), and that code
is wrong for the same reason.

Also remove that in memblock_alloc_base.

Signed-off-by: Yinghai Lu <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Russell King <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memblock.c
This page took 0.048806 seconds and 4 git commands to generate.