aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 7e5d4fda4936..39f5362e2cb5 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * fs/cifs/connect.c 2 * fs/cifs/connect.c
3 * 3 *
4 * Copyright (C) International Business Machines Corp., 2002,2008 4 * Copyright (C) International Business Machines Corp., 2002,2009
5 * Author(s): Steve French (sfrench@us.ibm.com) 5 * Author(s): Steve French (sfrench@us.ibm.com)
6 * 6 *
7 * This library is free software; you can redistribute it and/or modify 7 * This library is free software; you can redistribute it and/or modify
@@ -3463,7 +3463,8 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
3463 strncpy(tcon->treeName, tree, MAX_TREE_SIZE); 3463 strncpy(tcon->treeName, tree, MAX_TREE_SIZE);
3464 3464
3465 /* mostly informational -- no need to fail on error here */ 3465 /* mostly informational -- no need to fail on error here */
3466 tcon->nativeFileSystem = cifs_strndup(bcc_ptr, bytes_left, 3466 tcon->nativeFileSystem = cifs_strndup_from_ucs(bcc_ptr,
3467 bytes_left,
3467 smb_buffer->Flags2 & 3468 smb_buffer->Flags2 &
3468 SMBFLG2_UNICODE, 3469 SMBFLG2_UNICODE,
3469 nls_codepage); 3470 nls_codepage);