[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 2/2] kernel2: Ein VM86-Speicherleck gefixt



! kernel2: TSSe beim Verlassen des VM86 freigeben

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/kernel2/src/arch/i386/vm86.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/kernel2/src/arch/i386/vm86.c b/src/kernel2/src/arch/i386/vm86.c
index 09404d9..4edb42c 100644
--- a/src/kernel2/src/arch/i386/vm86.c
+++ b/src/kernel2/src/arch/i386/vm86.c
@@ -471,6 +471,8 @@ static void destroy_vm86_task(cpu_tss_t* tss)
 
     mmc_destroy(&vm86_status.mmc);
 
+    mmc_vfree(&mmc_current_context(), tss, NUM_PAGES(2 * sizeof(cpu_tss_t)));
+
     // Wir sind fertig mit VM86 :-)
     pm_unblock_rpc(current_process, current_process->pid);
     vm86_status.in_use = 0;
-- 
1.6.0.2