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 @@ -452,6 +452,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
452
452
seq_printf (m , "\n\n\tSessions: " );
453
453
i = 0 ;
454
454
list_for_each_entry (ses , & server -> smb_ses_list , smb_ses_list ) {
455
+ spin_lock (& ses -> ses_lock );
456
+ if (ses -> ses_status == SES_EXITING ) {
457
+ spin_unlock (& ses -> ses_lock );
458
+ continue ;
459
+ }
455
460
i ++ ;
456
461
if ((ses -> serverDomain == NULL ) ||
457
462
(ses -> serverOS == NULL ) ||
@@ -472,6 +477,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
472
477
ses -> ses_count , ses -> serverOS , ses -> serverNOS ,
473
478
ses -> capabilities , ses -> ses_status );
474
479
}
480
+ spin_unlock (& ses -> ses_lock );
475
481
476
482
seq_printf (m , "\n\tSecurity type: %s " ,
477
483
get_security_type_str (server -> ops -> select_sectype (server , ses -> sectype )));
You can’t perform that action at this time.
0 commit comments