]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/smb2transport.c
Merge tag 'drm-misc-fixes-2020-02-20' of git://anongit.freedesktop.org/drm/drm-misc...
[linux.git] / fs / cifs / smb2transport.c
index fe6acfce33904638f7cf9e763ef310c0bf62cdfd..08b703b7a15ef0a1b0441a60060d91d31b38e05b 100644 (file)
@@ -104,13 +104,14 @@ int smb2_get_sign_key(__u64 ses_id, struct TCP_Server_Info *server, u8 *key)
 {
        struct cifs_chan *chan;
        struct cifs_ses *ses = NULL;
+       struct TCP_Server_Info *it = NULL;
        int i;
        int rc = 0;
 
        spin_lock(&cifs_tcp_ses_lock);
 
-       list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) {
-               list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
+       list_for_each_entry(it, &cifs_tcp_ses_list, tcp_ses_list) {
+               list_for_each_entry(ses, &it->smb_ses_list, smb_ses_list) {
                        if (ses->Suid == ses_id)
                                goto found;
                }