diff options
author | Johannes Weiner <hannes@saeurebad.de> | 2008-07-08 10:29:42 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-29 09:58:32 +1000 |
commit | 0a707210aa1b8ac40fe781b2a9d0b203b6ebb921 (patch) | |
tree | 66926aa4868bff6b78b13f3bdeb2a9e9a57bd20d /drivers/lguest | |
parent | 0c12091d82e48dc423fb1f51eb0062c557a084af (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')
-rw-r--r-- | drivers/lguest/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index 5eea4356d703..90663e01a56e 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 |