]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
core: Fix page leak on cell destruction
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 28 Jun 2015 16:47:28 +0000 (18:47 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 28 Jun 2015 16:49:09 +0000 (18:49 +0200)
Release the page used for large CPU set, if any, on regular cell
destruction.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/control.c

index 8de3e07613eb97a53caf458ad26c1d801426d718..695c8c100dd7817ccfd6fc1f2a4a19e73a7193a4 100644 (file)
@@ -630,6 +630,7 @@ static int cell_destroy(struct per_cpu *cpu_data, unsigned long id)
        printk("Closing cell \"%s\"\n", cell->config->name);
 
        cell_destroy_internal(cpu_data, cell);
+       destroy_cpu_set(cell);
 
        previous = &root_cell;
        while (previous->next != cell)