From patchwork Mon Dec 4 08:37:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liujing X-Patchwork-Id: 13477910 Received: from cmccmta1.chinamobile.com (cmccmta4.chinamobile.com [111.22.67.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D688C1 for ; Mon, 4 Dec 2023 00:37:33 -0800 (PST) X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app04-12004 (RichMail) with SMTP id 2ee4656d8fc944d-5ed1d; Mon, 04 Dec 2023 16:37:31 +0800 (CST) X-RM-TRANSID: 2ee4656d8fc944d-5ed1d X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain.localdomain (unknown[10.54.5.252]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee5656d8fc9d27-280da; Mon, 04 Dec 2023 16:37:31 +0800 (CST) X-RM-TRANSID: 2ee5656d8fc9d27-280da From: liujing To: shuah@kernel.org Cc: bigeasy@linutronix.de, tglx@linutronix.de, linux-kselftest@vger.kernel.org, liujing Subject: [PATCH] tools/testing/selftests/x86: add dlclose function in the test_vsyscall.c Date: Mon, 4 Dec 2023 03:37:28 -0500 Message-Id: <20231204083728.2767-1-liujing@cmss.chinamobile.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: in the init_vdso function of test_vsyscall.c, Missing a dlclose function in the end Signed-off-by: liujing --- 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)