]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cifs: Fix TCP_Server_Info::credits to be signed
authorDavid Howells <dhowells@redhat.com>
Mon, 20 Oct 2025 08:40:02 +0000 (09:40 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 23 Oct 2025 01:22:18 +0000 (20:22 -0500)
commit5b2ff4873aeab972f919d5aea11c51393322bf58
tree8122ac6cc98b3449e94df75a53f3779ae98329d4
parent5da6fb6356362c7eb40ed931b27abc31b3582950
cifs: Fix TCP_Server_Info::credits to be signed

Fix TCP_Server_Info::credits to be signed, just as echo_credits and
oplock_credits are.  This also fixes what ought to get at least a
compilation warning if not an outright error in *get_credits_field() as a
pointer to the unsigned server->credits field is passed back as a pointer
to a signed int.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: linux-cifs@vger.kernel.org
Cc: stable@vger.kernel.org
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Acked-by: Pavel Shilovskiy <pshilovskiy@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h