smb3: fix empty netname context on secondary channels
authorSteve French <stfrench@microsoft.com>
Sat, 18 Jun 2022 22:24:23 +0000 (17:24 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Jun 2022 21:23:50 +0000 (16:23 -0500)
commit73130a7b1ac92c9f30e0a255951129f4851c5794
tree7f46bb241c98b63f6c386a7de523a23d58e2be71
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
smb3: fix empty netname context on secondary channels

Some servers do not allow null netname contexts, which would cause
multichannel to revert to single channel when mounting to some
servers (e.g. Azure xSMB).

Fixes: 4c14d7043fede ("cifs: populate empty hostnames for extra channels")
Reviewed-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/smb2pdu.c