Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a707210 authored by Johannes Weiner's avatar Johannes Weiner Committed by Rusty Russell
Browse files

lguest: fix switcher_page leak on unload



map_switcher allocates the array, unmap_switcher has to free it
accordingly.

Signed-off-by: default avatarJohannes Weiner <hannes@saeurebad.de>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 0c12091d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -135,6 +135,7 @@ static void unmap_switcher(void)
	/* Now we just need to free the pages we copied the switcher into */
	for (i = 0; i < TOTAL_SWITCHER_PAGES; i++)
		__free_pages(switcher_page[i], 0);
	kfree(switcher_page);
}

/*H:032