]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Fix unsigned expression compared with zero
authorWang Ming <machel@vivo.com>
Sun, 31 Dec 2023 07:12:51 +0000 (16:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:31 +0000 (15:18 +0100)
commitd782f42eed93b267cd013935c4a5426aeb9adfca
treef3c6750b43b8c09743ff4740226a879412b6148e
parent48cc49384048f0037691aa7f589d93199dde81da
ksmbd: Fix unsigned expression compared with zero

[ Upstream commit 0266a2f791294e0b4ba36f4a1d89b8615ea3cac0 ]

The return value of the ksmbd_vfs_getcasexattr() is signed.
However, the return value is being assigned to an unsigned
variable and subsequently recasted, causing warnings. Use
a signed type.

Signed-off-by: Wang Ming <machel@vivo.com>
Acked-by: Tom Talpey <tom@talpey.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/vfs.c