mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 21:37:44 +00:00
Merge "Handle error returned by IBurstContext::freeMemory" am: f3bd4751a3 am: 1b085b37c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856680 Change-Id: I5fbadc2b37a38adc91fb1f8cfc40f0841eb334e7
This commit is contained in:
@@ -176,7 +176,10 @@ void ExecutionBurstController::MemoryCache::freeMemory(const nn::SharedMemory& m
|
||||
std::lock_guard guard(mMutex);
|
||||
const int32_t slot = mMemoryIdToSlot.at(memory);
|
||||
if (mBurstContext) {
|
||||
mBurstContext->freeMemory(slot);
|
||||
const auto ret = mBurstContext->freeMemory(slot);
|
||||
if (!ret.isOk()) {
|
||||
LOG(ERROR) << "IBustContext::freeMemory failed: " << ret.description();
|
||||
}
|
||||
}
|
||||
mMemoryIdToSlot.erase(memory);
|
||||
mMemoryCache[slot] = {};
|
||||
|
||||
Reference in New Issue
Block a user