diff mbox series

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

Message ID 20231204083728.2767-1-liujing@cmss.chinamobile.com (mailing list archive)
State New
Headers show
Series tools/testing/selftests/x86: add dlclose function in the test_vsyscall.c | expand

Commit Message

liujing Dec. 4, 2023, 8:37 a.m. UTC
in the init_vdso function of test_vsyscall.c, Missing a dlclose function
in the end

Signed-off-by: liujing <liujing@cmss.chinamobile.com>
---
 tools/testing/selftests/x86/test_vsyscall.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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)