]> git.baikalelectronics.ru Git - kernel.git/commit
mm, nobootmem: do memset() after memblock_reserve()
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Mon, 29 Apr 2013 22:08:53 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:39 +0000 (15:54 -0700)
commit9c5acb7fe8c3fb51da5791e3fb61b5b50c24cb43
tree8870e141ca8acbf58cf0b8b470e30b6dbb4a32d2
parentffda008562f53cfff2c08fa3b8124266de3c60fd
mm, nobootmem: do memset() after memblock_reserve()

Currently, we do memset() before reserving the area.  This may not cause
any problem, but it is somewhat weird.  So change execution order.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Jiang Liu <liuj97@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/nobootmem.c