mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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. [[email protected]: improve free_bootmem() and free_bootmem_pate() documentation] Signed-off-by: Joonsoo Kim <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Hans-Christian Egtvedt <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: FUJITA Tomonori <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e9b2e78c6a
commit
81df9bff26
5 changed files with 16 additions and 16 deletions
|
|
@ -565,7 +565,7 @@ fail_msg_node:
|
|||
fail_db_node:
|
||||
of_node_put(smu->db_node);
|
||||
fail_bootmem:
|
||||
free_bootmem((unsigned long)smu, sizeof(struct smu_device));
|
||||
free_bootmem(__pa(smu), sizeof(struct smu_device));
|
||||
smu = NULL;
|
||||
fail_np:
|
||||
of_node_put(np);
|
||||
|
|
|
|||
Loading…
Reference in a new issue