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>] [day] [month] [year] [list]
Message-ID: <20250313160959132rMOoPpNjSNTlB-E6rMOuj@zte.com.cn>
Date: Thu, 13 Mar 2025 16:09:59 +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 utf8s_to_utf16s parameter type in declaration and definition

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

The declaration of utf8s_to_utf16s 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 inlen to len,maxout to maxlen to ensure consistency.

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

diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
index 18d597e49a19..547227669348 100644
--- a/fs/nls/nls_base.c
+++ b/fs/nls/nls_base.c
@@ -129,8 +129,8 @@ static inline void put_utf16(wchar_t *s, unsigned c, enum utf16_endian endian)
 	}
 }

-int utf8s_to_utf16s(const u8 *s, int inlen, enum utf16_endian endian,
-		wchar_t *pwcs, int maxout)
+int utf8s_to_utf16s(const u8 *s, int len, enum utf16_endian endian,
+		wchar_t *pwcs, int maxlen)
 {
 	u16 *op;
 	int size;
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ