[PATCH] tools/testing/selftests/x86: add dlclose function in the test_vsyscall.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



in the init_vdso function of test_vsyscall.c, Missing a dlclose function
in the end

Signed-off-by: liujing <liujing@xxxxxxxxxxxxxxxxxxxx>
---
 tools/testing/selftests/x86/test_vsyscall.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/testing/selftests/x86/test_vsyscall.c b/tools/testing/selftests/x86/test_vsyscall.c
index 47cab972807c..9035d2745c28 100644
--- a/tools/testing/selftests/x86/test_vsyscall.c
+++ b/tools/testing/selftests/x86/test_vsyscall.c
@@ -94,6 +94,9 @@ static void init_vdso(void)
 	vdso_getcpu = (getcpu_t)dlsym(vdso, "__vdso_getcpu");
 	if (!vdso_getcpu)
 		printf("[WARN]\tfailed to find getcpu in vDSO\n");
+
+	dlclose(vdso);
+
 }
 
 static int init_vsys(void)
-- 
2.18.2







[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux