aboutsummaryrefslogtreecommitdiff
path: root/drivers/lguest/core.c
diff options
context:
space:
mode:
authorJohannes Weiner <hannes@saeurebad.de>2008-07-08 10:29:42 +0200
committerRusty Russell <rusty@rustcorp.com.au>2008-07-29 09:58:32 +1000
commit0a707210aa1b8ac40fe781b2a9d0b203b6ebb921 (patch)
tree66926aa4868bff6b78b13f3bdeb2a9e9a57bd20d /drivers/lguest/core.c
parent0c12091d82e48dc423fb1f51eb0062c557a084af (diff)
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>
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r--drivers/lguest/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index 5eea4356d70..90663e01a56 100644
--- a/drivers/lguest/core.c
+++ b/drivers/lguest/core.c
@@ -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