aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/smb/client/smb2pdu.c
diff options
context:
space:
mode:
authorBharath SM <bharathsm@microsoft.com>2024-12-17 00:09:36 +0530
committerSteve French <stfrench@microsoft.com>2024-12-19 09:24:32 -0600
commita769bee5f9fbca47efd4fa6bc3d726d370cedebe (patch)
treef8c7625cd0ffc0c2116ff8941c4bb80f09f22f0b /fs/smb/client/smb2pdu.c
parentLinux 6.13-rc3 (diff)
downloadwireguard-linux-a769bee5f9fbca47efd4fa6bc3d726d370cedebe.tar.xz
wireguard-linux-a769bee5f9fbca47efd4fa6bc3d726d370cedebe.zip
smb: use macros instead of constants for leasekey size and default cifsattrs value
Replace default hardcoded value for cifsAttrs with ATTR_ARCHIVE macro Use SMB2_LEASE_KEY_SIZE macro for leasekey size in smb2_lease_break Signed-off-by: Bharath SM <bharathsm@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/smb/client/smb2pdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c
index 010eae9d6c47..c945b94318f8 100644
--- a/fs/smb/client/smb2pdu.c
+++ b/fs/smb/client/smb2pdu.c
@@ -6204,7 +6204,7 @@ SMB2_lease_break(const unsigned int xid, struct cifs_tcon *tcon,
req->StructureSize = cpu_to_le16(36);
total_len += 12;
- memcpy(req->LeaseKey, lease_key, 16);
+ memcpy(req->LeaseKey, lease_key, SMB2_LEASE_KEY_SIZE);
req->LeaseState = lease_state;
flags |= CIFS_NO_RSP_BUF;