RISC-V: Fix memblock_free() usages in init_resources()
authorWende Tan <twd2.me@gmail.com>
Sat, 22 May 2021 17:49:51 +0000 (17:49 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 2 Jun 2021 04:16:42 +0000 (21:16 -0700)
commitda2d48808fbd1eddefefe245c6c0e92a9195df8b
tree72ff2a7ba29ea7bd88a14a5b54c417e5bc317614
parentb75db25c416b9f0edae7cd86c4901c216a52e7a0
RISC-V: Fix memblock_free() usages in init_resources()

`memblock_free()` takes a physical address as its first argument.
Fix the wrong usages in `init_resources()`.

Fixes: ffe0e526126884cf036a6f724220f1f9b4094fd2 ("RISC-V: Improve init_resources()")
Fixes: 797f0375dd2ef5cdc68ac23450cbae9a5c67a74e ("RISC-V: Do not allocate memblock while iterating reserved memblocks")
Signed-off-by: Wende Tan <twd2.me@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/setup.c