summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorYiqi Sun <sunyiqixm@gmail.com>2025-11-11 15:05:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-12 18:40:20 +0100
commitc22551caf2ec9042a9ea76a31b523b06f8153faa (patch)
treec52a98fa14d88fc7462f913de6b0e0b78c3ac504 /include/net/aligned_data.h
parentfcd5786b506c51cbabc2560c68e040d8dba22a0d (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