Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be783a47 authored by Shaohua Li's avatar Shaohua Li Committed by H. Peter Anvin
Browse files

x86, vdso: Unmap vdso pages



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: default avatarShaohua Li <shaohua.li@intel.com>
LKML-Reference: <20100802004934.GA2505@sli10-desk.sh.intel.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 9fe6206f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: