Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smb: client: remove extra @chan_count check in __cifs_put_smb_ses()
[ Upstream commit c37ed2d ] If @ses->chan_count <= 1, then for-loop body will not be executed so no need to check it twice. Reviewed-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com> Stable-dep-of: 24a9799 ("smb: client: fix UAF in smb2_reconnect_server()") Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information