Skip to content

Commit

Permalink
x86, vdso: Unmap vdso pages
Browse files Browse the repository at this point in the history
We mapped vdso pages but never unmapped them and the virtual address
is lost after exiting from the function, so unmap vdso pages here.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
LKML-Reference: <20100802004934.GA2505@sli10-desk.sh.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Shaohua Li authored and H. Peter Anvin committed Aug 2, 2010
1 parent 9fe6206 commit be783a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/vdso/vma.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static int __init init_vdso_vars(void)
*(typeof(__ ## x) **) var_ref(VDSO64_SYMBOL(vbase, x), #x) = &__ ## x;
#include "vextern.h"
#undef VEXTERN
vunmap(vbase);
return 0;

oom:
Expand Down

0 comments on commit be783a4

Please sign in to comment.