aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kiryanov <rkir@google.com>2024-01-23 16:11:02 -0800
committerRoman Kiryanov <rkir@google.com>2024-01-23 16:23:09 -0800
commit926d94b552ca6874cbc774c2cdbda07ec64bc504 (patch)
tree73f529ebd56af61e18309ebe479f966c96071223
parentbe0ce7ad8f88186561f750b445ef5d13431898b0 (diff)
downloadaemu-926d94b552ca6874cbc774c2cdbda07ec64bc504.tar.gz
Sync address_space_host_memory_allocator.cpp to external/qemu
Bug: 322026591 Test: presubmit Change-Id: I9c8ca9a4e79127e52bc54e75f1a880dcd1c910c3 Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r--host-common/address_space_host_memory_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
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