]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Fix unsigned expression compared with zero
authorWang Ming <machel@vivo.com>
Mon, 18 Dec 2023 15:34:14 +0000 (00:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:57 +0000 (10:41 +0100)
commitcf63b94fec603f3f699e77bf30df146c5e5f943f
treee0bbe8591b1440e0d9d9524dcca8a58a9cddad03
parent5f36e22910c2b3ac19309a7ffc5d3feb4f45cf1a
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/vfs.c