lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <202503131601265834sSbkAuqH0NUydxGXf-Fa@zte.com.cn>
Date: Thu, 13 Mar 2025 16:01:26 +0800 (CST)
From: <ye.xingchen@....com.cn>
To: <brauner@...nel.org>
Cc: <jack@...e.cz>, <jeff.johnson@....qualcomm.com>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH] nls: Fix utf32_to_utf8 parameter type in declaration and definition

From: YeXingchen <ye.xingchen@....com.cn>

The declaration of utf32_to_utf8 in the header file uses
bool maxlen as the parameter type, while the definition uses bool maxout.

This patch aligns the parameter name in the definition with the
declaration,changing maxout to maxlen to ensure consistency.

Signed-off-by: YeXingchen <ye.xingchen@....com.cn>
---
 fs/nls/nls_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index 18d597e49a19..1dc2f8c8916e 100644
--- a/fs/nls/nls_base.c
+++ b/fs/nls/nls_base.c
@@ -83,7 +83,7 @@ int utf8_to_utf32(const u8 *s, int inlen, unicode_t *pu)
 }
 EXPORT_SYMBOL(utf8_to_utf32);

-int utf32_to_utf8(unicode_t u, u8 *s, int maxout)
+int utf32_to_utf8(unicode_t u, u8 *s, int maxlen)
 {
 	unsigned long l;
 	int c, nc;
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ