From bad705f245f1591d8a92cd57bfbc87dd2cdb0fea Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Fri, 29 Dec 2023 09:27:37 +0100 Subject: [PATCH] SMMU: Fix Unregister on MultiAddress --- src/core/device_memory_manager.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/device_memory_manager.inc b/src/core/device_memory_manager.inc index 4fb3ad3ab..b3a5f3d8b 100644 --- a/src/core/device_memory_manager.inc +++ b/src/core/device_memory_manager.inc @@ -78,7 +78,7 @@ public: u32 next_entry = current->next_entry; if (next_entry != 0) { next = &storage[next_entry - 1]; - more_than_one_remaining = next->next_entry != 0; + more_than_one_remaining = next->next_entry != 0 || previous != nullptr; } if (previous) { previous->next_entry = next_entry;