aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2017-05-02 14:35:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 08:28:40 -0400
commit2ac2ad9fb04537160a35af7fefe8560f968ac896 (patch)
treef0f32c065e60db7974f9dcc7a80861981485da37 /fs
parent4f5e1c48e80b5be66a5078369f9dddf6e178b37e (diff)
Set unicode flag on cifs echo request to avoid Mac error
commit 26c9cb668c7fbf9830516b75d8bee70b699ed449 upstream. Mac requires the unicode flag to be set for cifs, even for the smb echo request (which doesn't have strings). Without this Mac rejects the periodic echo requests (when mounting with cifs) that we use to check if server is down Signed-off-by: Steve French <smfrench@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/cifssmb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 586fdac05ec2..1f91c9dadd5b 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -717,6 +717,9 @@ CIFSSMBEcho(struct TCP_Server_Info *server)
717 if (rc) 717 if (rc)
718 return rc; 718 return rc;
719 719
720 if (server->capabilities & CAP_UNICODE)
721 smb->hdr.Flags2 |= SMBFLG2_UNICODE;
722
720 /* set up echo request */ 723 /* set up echo request */
721 smb->hdr.Tid = 0xffff; 724 smb->hdr.Tid = 0xffff;
722 smb->hdr.WordCount = 1; 725 smb->hdr.WordCount = 1;