]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: change lease epoch type from unsigned int to __u16
authorMeetakshi Setiya <msetiya@microsoft.com>
Thu, 6 Feb 2025 06:50:41 +0000 (01:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:38 +0000 (13:49 +0100)
commit7879a3e54cc4d31d4defb6d974ae3127d991c8ac
treeedc32fde6bb7a0886903c2a4ef2641169e04ceed
parentc6b9eaeff447726038c36e6879cbe75ff87ee656
smb: client: change lease epoch type from unsigned int to __u16

commit 57e4a9bd61c308f607bc3e55e8fa02257b06b552 upstream.

MS-SMB2 section 2.2.13.2.10 specifies that 'epoch' should be a 16-bit
unsigned integer used to track lease state changes. Change the data
type of all instances of 'epoch' from unsigned int to __u16. This
simplifies the epoch change comparisons and makes the code more
compliant with the protocol spec.

Cc: stable@vger.kernel.org
Signed-off-by: Meetakshi Setiya <msetiya@microsoft.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cifsglob.h
fs/smb/client/smb1ops.c
fs/smb/client/smb2ops.c
fs/smb/client/smb2pdu.c
fs/smb/client/smb2proto.h