]> www.infradead.org Git - users/hch/misc.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)
committerSteve French <stfrench@microsoft.com>
Thu, 6 Feb 2025 16:01:22 +0000 (10:01 -0600)
commit57e4a9bd61c308f607bc3e55e8fa02257b06b552
treef20149c7601b60c7f2ed2df11673a12672119403
parentbe1963dd4ce4e467f062b023d1e696f40c926a04
smb: client: change lease epoch type from unsigned int to __u16

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>
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