File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
395395 seq_printf (m , "\n\n\tSessions: " );
396396 i = 0 ;
397397 list_for_each_entry (ses , & server -> smb_ses_list , smb_ses_list ) {
398+ spin_lock (& ses -> ses_lock );
399+ if (ses -> ses_status == SES_EXITING ) {
400+ spin_unlock (& ses -> ses_lock );
401+ continue ;
402+ }
398403 i ++ ;
399404 if ((ses -> serverDomain == NULL ) ||
400405 (ses -> serverOS == NULL ) ||
@@ -415,6 +420,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
415420 ses -> ses_count , ses -> serverOS , ses -> serverNOS ,
416421 ses -> capabilities , ses -> status );
417422 }
423+ spin_unlock (& ses -> ses_lock );
418424
419425 seq_printf (m , "\n\tSecurity type: %s " ,
420426 get_security_type_str (server -> ops -> select_sectype (server , ses -> sectype )));
You can’t perform that action at this time.
0 commit comments