From 903432f05719f8f090bfe42abdd3ff11dba455fd Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 14 Apr 2017 20:59:01 -0600 Subject: [PATCH] Fix issue with reusing temporary page frame --- src/paging/temporary_page.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paging/temporary_page.rs b/src/paging/temporary_page.rs index aba6703..d860b2f 100644 --- a/src/paging/temporary_page.rs +++ b/src/paging/temporary_page.rs @@ -39,7 +39,7 @@ impl TemporaryPage { /// Unmaps the temporary page in the active table. pub fn unmap(&mut self, active_table: &mut ActivePageTable) { - let result = active_table.unmap(self.page); + let (result, _frame) = active_table.unmap_return(self.page); result.flush(active_table); } }