diff options
| author | Yiqi Sun <sunyiqixm@gmail.com> | 2025-11-11 15:05:39 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-12 18:37:20 +0100 |
| commit | ef9b1e6b8f90282b098a29442639b7759be1374b (patch) | |
| tree | 9d4631da2f0bfb89820fe0afd98be430997dddcb /include/net/aligned_data.h | |
| parent | 4c5b89f3815431a4d9179e0e243fdb6ae37044d6 (diff) | |
smb: fix invalid username check in smb3_fs_context_parse_param()
[ Upstream commit ed6612165b74f09db00ef0abaf9831895ab28b7f ]
Since the maximum return value of strnlen(..., CIFS_MAX_USERNAME_LEN)
is CIFS_MAX_USERNAME_LEN, length check in smb3_fs_context_parse_param()
is always FALSE and invalid.
Fix the comparison in if statement.
Signed-off-by: Yiqi Sun <sunyiqixm@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
