mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
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>
This commit is contained in:
parent
0c12091d82
commit
0a707210aa
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue