SMB3: GUIDs should be constructed as random but valid uuids
[firefly-linux-kernel-4.4.55.git] / fs / cifs / connect.c
index 61c3a5ab863725cd3ea3f1ceefc54bcb35a622cf..85fe5c95bb67f5317f62b72707b81e2ae9b4663a 100644 (file)
@@ -2200,7 +2200,7 @@ cifs_get_tcp_session(struct smb_vol *volume_info)
        memcpy(&tcp_ses->dstaddr, &volume_info->dstaddr,
                sizeof(tcp_ses->dstaddr));
 #ifdef CONFIG_CIFS_SMB2
-       get_random_bytes(tcp_ses->client_guid, SMB2_CLIENT_GUID_SIZE);
+       generate_random_uuid(tcp_ses->client_guid);
 #endif
        /*
         * at this point we are the only ones with the pointer