OSDN Git Service

hw/ppc: spapr: Use qemu_vfree() to free spapr->htab
authorXuzhou Cheng <xuzhou.cheng@windriver.com>
Tue, 20 Sep 2022 10:31:47 +0000 (18:31 +0800)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 20 Sep 2022 15:31:53 +0000 (12:31 -0300)
commitcb5b5ab9a516ce5ecddfc50971bf6f690300fd74
treee3b24ce5aca30c2a18e58d9333e138adb7c67ee1
parentc3f24257e3c094122a82611db3d7c3e8b25d9153
hw/ppc: spapr: Use qemu_vfree() to free spapr->htab

spapr->htab is allocated by qemu_memalign(), hence we should use
qemu_vfree() to free it.

Fixes: c5f54f3e31bf ("pseries: Move hash page table allocation to reset time")
Fixes: b4db54132ffe ("target/ppc: Implement H_REGISTER_PROCESS_TABLE H_CALL"")
Signed-off-by: Xuzhou Cheng <xuzhou.cheng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220920103159.1865256-28-bmeng.cn@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/spapr.c