diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-09 14:45:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-12-09 14:45:44 -0800 |
commit | 8def5f51b012efb00e77ba2d04696cc0aadd0609 (patch) | |
tree | 17b51ff707fd1b3efec3a3ab872f0d7a7416aca5 /fs/cifs/smbencrypt.c | |
parent | a776878d6cf8a81fa65b29aa9bd6a10a5131e71c (diff) | |
parent | 7023676f9ee851d94f0942e879243fc1f9081c47 (diff) | |
download | kernel_goldelico_gta04-8def5f51b012efb00e77ba2d04696cc0aadd0609.zip kernel_goldelico_gta04-8def5f51b012efb00e77ba2d04696cc0aadd0609.tar.gz kernel_goldelico_gta04-8def5f51b012efb00e77ba2d04696cc0aadd0609.tar.bz2 |
Merge git://git.samba.org/sfrench/cifs-2.6
* git://git.samba.org/sfrench/cifs-2.6:
cifs: check for NULL last_entry before calling cifs_save_resume_key
cifs: attempt to freeze while looping on a receive attempt
cifs: Fix sparse warning when calling cifs_strtoUCS
CIFS: Add descriptions to the brlock cache functions
Diffstat (limited to 'fs/cifs/smbencrypt.c')
-rw-r--r-- | fs/cifs/smbencrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/smbencrypt.c b/fs/cifs/smbencrypt.c index 7cacba1..80d8508 100644 --- a/fs/cifs/smbencrypt.c +++ b/fs/cifs/smbencrypt.c @@ -209,7 +209,7 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16, { int rc; int len; - __u16 wpwd[129]; + __le16 wpwd[129]; /* Password cannot be longer than 128 characters */ if (passwd) /* Password must be converted to NT unicode */ @@ -219,8 +219,8 @@ E_md4hash(const unsigned char *passwd, unsigned char *p16, *wpwd = 0; /* Ensure string is null terminated */ } - rc = mdfour(p16, (unsigned char *) wpwd, len * sizeof(__u16)); - memset(wpwd, 0, 129 * sizeof(__u16)); + rc = mdfour(p16, (unsigned char *) wpwd, len * sizeof(__le16)); + memset(wpwd, 0, 129 * sizeof(__le16)); return rc; } |