From 926d94b552ca6874cbc774c2cdbda07ec64bc504 Mon Sep 17 00:00:00 2001 From: Roman Kiryanov Date: Tue, 23 Jan 2024 16:11:02 -0800 Subject: Sync address_space_host_memory_allocator.cpp to external/qemu Bug: 322026591 Test: presubmit Change-Id: I9c8ca9a4e79127e52bc54e75f1a880dcd1c910c3 Signed-off-by: Roman Kiryanov --- host-common/address_space_host_memory_allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host-common/address_space_host_memory_allocator.cpp b/host-common/address_space_host_memory_allocator.cpp index ed2e5fa..8db3bbe 100644 --- a/host-common/address_space_host_memory_allocator.cpp +++ b/host-common/address_space_host_memory_allocator.cpp @@ -107,7 +107,6 @@ uint64_t AddressSpaceHostMemoryAllocatorContext::unallocate(AddressSpaceDevicePi } else { return -1; } - return 0; } AddressSpaceDeviceType AddressSpaceHostMemoryAllocatorContext::getDeviceType() const { @@ -162,6 +161,7 @@ void AddressSpaceHostMemoryAllocatorContext::clear() { phys_addr, host_ptr, size); } } + m_paddr2ptr.clear(); } } // namespace emulation -- cgit v1.2.3