diff options
Diffstat (limited to 'fs/smb/client/misc.c')
| -rw-r--r-- | fs/smb/client/misc.c | 8 | 
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/smb/client/misc.c b/fs/smb/client/misc.c index c3771fc81328..33ac4f8f5050 100644 --- a/fs/smb/client/misc.c +++ b/fs/smb/client/misc.c @@ -138,9 +138,6 @@ tcon_info_alloc(bool dir_leases_enabled)  	atomic_set(&ret_buf->num_local_opens, 0);  	atomic_set(&ret_buf->num_remote_opens, 0);  	ret_buf->stats_from_time = ktime_get_real_seconds(); -#ifdef CONFIG_CIFS_DFS_UPCALL -	INIT_LIST_HEAD(&ret_buf->dfs_ses_list); -#endif  	return ret_buf;  } @@ -156,9 +153,6 @@ tconInfoFree(struct cifs_tcon *tcon)  	atomic_dec(&tconInfoAllocCount);  	kfree(tcon->nativeFileSystem);  	kfree_sensitive(tcon->password); -#ifdef CONFIG_CIFS_DFS_UPCALL -	dfs_put_root_smb_sessions(&tcon->dfs_ses_list); -#endif  	kfree(tcon->origin_fullpath);  	kfree(tcon);  } @@ -487,6 +481,8 @@ is_valid_oplock_break(char *buffer, struct TCP_Server_Info *srv)  	/* look up tcon based on tid & uid */  	spin_lock(&cifs_tcp_ses_lock);  	list_for_each_entry(ses, &pserver->smb_ses_list, smb_ses_list) { +		if (cifs_ses_exiting(ses)) +			continue;  		list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {  			if (tcon->tid != buf->Tid)  				continue;  |