cifs: update ip_addr for ses only for primary chan setup
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 10 Feb 2023 17:41:17 +0000 (17:41 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 21 Feb 2023 07:25:11 +0000 (01:25 -0600)
commite77978de4765229e09c8fabcf4f8419ff367317f
tree2c59949e8b8f280734c09866d3c61ca220359f6c
parentdf57109bd50b9ed6911f3c2aa914189fe4c1fe2c
cifs: update ip_addr for ses only for primary chan setup

We update ses->ip_addr whenever we do a session setup.
But this should happen only for primary channel in mchan
scenario.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c