]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: populate empty hostnames for extra channels
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 6 Jun 2022 09:52:46 +0000 (09:52 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 10 Jun 2022 23:55:02 +0000 (18:55 -0500)
commit260d5aec9f51230a24a97973e8c1698f68ff1134
tree9dd0bce5348d8d287c1005c55d2131d04a66a556
parentbadc90a1a14b6a852d875b0b105c641efb54a0ab
cifs: populate empty hostnames for extra channels

Currently, the secondary channels of a multichannel session
also get hostname populated based on the info in primary channel.
However, this will end up with a wrong resolution of hostname to
IP address during reconnect.

This change fixes this by not populating hostname info for all
secondary channels.

Fixes: 175b0ba31bc0 ("cifs: populate server_hostname for extra channels")
Cc: stable@vger.kernel.org
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/sess.c