git: b2ae573abd09 - stable/13 - linux: plug a set-but-not-used var

From: Dmitry Chagin <dchagin_at_FreeBSD.org>
Date: Wed, 22 Jun 2022 10:08:49 UTC
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=b2ae573abd093c149b26347badd4dc75383b45ba

commit b2ae573abd093c149b26347badd4dc75383b45ba
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2022-04-19 12:29:46 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-06-22 10:07:07 +0000

    linux: plug a set-but-not-used var
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    
    (cherry picked from commit 93494e425b95e3b08e11389c877b71298b6a244e)
---
 sys/compat/linux/linux_sysctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_sysctl.c b/sys/compat/linux/linux_sysctl.c
index e722280a2bbf..36f76c088ca3 100644
--- a/sys/compat/linux/linux_sysctl.c
+++ b/sys/compat/linux/linux_sysctl.c
@@ -163,7 +163,7 @@ linux_sysctl(struct thread *td, struct linux_sysctl_args *args)
 		sbuf_printf(sb, "} is not implemented");
 		sbuf_finish(sb);
 		sysctl_string = sbuf_data(sb);
-		linux_msg(td, "%s", sbuf_data(sb));
+		linux_msg(td, "%s", sysctl_string);
 		LIN_SDT_PROBE1(sysctl, linux_sysctl, unsupported_sysctl,
 		    sysctl_string);
 		sbuf_delete(sb);