|
@@ -2726,6 +2726,7 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses,
|
|
|
strncpy(tcon->treeName, tree, MAX_TREE_SIZE);
|
|
strncpy(tcon->treeName, tree, MAX_TREE_SIZE);
|
|
|
|
|
|
|
|
/* mostly informational -- no need to fail on error here */
|
|
/* mostly informational -- no need to fail on error here */
|
|
|
|
|
+ kfree(tcon->nativeFileSystem);
|
|
|
tcon->nativeFileSystem = cifs_strndup_from_ucs(bcc_ptr,
|
|
tcon->nativeFileSystem = cifs_strndup_from_ucs(bcc_ptr,
|
|
|
bytes_left, is_unicode,
|
|
bytes_left, is_unicode,
|
|
|
nls_codepage);
|
|
nls_codepage);
|