Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213420
b: refs/heads/master
c: ccc46a7
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Oct 8, 2010
1 parent 202606e commit fb37963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2de970ff69bbcc5a4b7440df669a595b2b1acd73
refs/heads/master: ccc46a7402200a3b28a8fa1605ea5405a9ef66f7
5 changes: 4 additions & 1 deletion trunk/fs/cifs/cifsencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,16 @@ find_domain_name(struct cifsSesInfo *ses)
if (!attrsize)
break;
if (!ses->domainName) {
struct nls_table *default_nls;
ses->domainName =
kmalloc(attrsize + 1, GFP_KERNEL);
if (!ses->domainName)
return -ENOMEM;
default_nls = load_nls_default();
cifs_from_ucs2(ses->domainName,
(__le16 *)blobptr, attrsize, attrsize,
load_nls_default(), false);
default_nls, false);
unload_nls(default_nls);
break;
}
}
Expand Down

0 comments on commit fb37963

Please sign in to comment.