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)
452452 seq_printf (m , "\n\n\tSessions: " );
453453 i = 0 ;
454454 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+ }
455460 i ++ ;
456461 if ((ses -> serverDomain == NULL ) ||
457462 (ses -> serverOS == NULL ) ||
@@ -472,6 +477,7 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
472477 ses -> ses_count , ses -> serverOS , ses -> serverNOS ,
473478 ses -> capabilities , ses -> ses_status );
474479 }
480+ spin_unlock (& ses -> ses_lock );
475481
476482 seq_printf (m , "\n\tSecurity type: %s " ,
477483 get_security_type_str (server -> ops -> select_sectype (server , ses -> sectype )));
You can’t perform that action at this time.
0 commit comments