]> git.baikalelectronics.ru Git - kernel.git/commit
bootmem: fix wrong call parameter for free_bootmem()
authorJoonsoo Kim <js1304@gmail.com>
Wed, 12 Dec 2012 00:03:10 +0000 (16:03 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Dec 2012 01:22:28 +0000 (17:22 -0800)
commita350a94604055aaec39401d7dd18dc3a708ce7ba
tree52c5ebc7e9e5efd93040cba5f0439e043eec368e
parent389076012e6b3c394b5557825dc12da7f05cd70c
bootmem: fix wrong call parameter for free_bootmem()

It is strange that alloc_bootmem() returns a virtual address and
free_bootmem() requires a physical address.  Anyway, free_bootmem()'s
first parameter should be physical address.

There are some call sites for free_bootmem() with virtual address.  So fix
them.

[akpm@linux-foundation.org: improve free_bootmem() and free_bootmem_pate() documentation]
Signed-off-by: Joonsoo Kim <js1304@gmail.com>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/cell/celleb_pci.c
drivers/macintosh/smu.c
include/linux/bootmem.h
lib/cpumask.c
mm/bootmem.c