lguest: fix switcher_page leak on unload

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

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

authored by

Johannes Weiner and committed by
Rusty Russell
0a707210 0c12091d

+1
+1
drivers/lguest/core.c
··· 135 135 /* Now we just need to free the pages we copied the switcher into */ 136 136 for (i = 0; i < TOTAL_SWITCHER_PAGES; i++) 137 137 __free_pages(switcher_page[i], 0); 138 + kfree(switcher_page); 138 139 } 139 140 140 141 /*H:032