aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 8813ff776ba3..8b8fe9b373f2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2144,6 +2144,9 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
2144 sizeof(tcp_ses->srcaddr)); 2144 sizeof(tcp_ses->srcaddr));
2145 memcpy(&tcp_ses->dstaddr, &volume_info->dstaddr, 2145 memcpy(&tcp_ses->dstaddr, &volume_info->dstaddr,
2146 sizeof(tcp_ses->dstaddr)); 2146 sizeof(tcp_ses->dstaddr));
2147#ifdef CONFIG_CIFS_SMB2
2148 get_random_bytes(tcp_ses->client_guid, SMB2_CLIENT_GUID_SIZE);
2149#endif
2147 /* 2150 /*
2148 * at this point we are the only ones with the pointer 2151 * at this point we are the only ones with the pointer
2149 * to the struct since the kernel thread not created yet 2152 * to the struct since the kernel thread not created yet