]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/cifs/smbencrypt.c
tty: serial: omap-serial: wakeup latency constraint is in microseconds, not milliseconds
[karo-tx-linux.git] / fs / cifs / smbencrypt.c
index 7cacba12b8f114468ef56dab7d58fc5678d0c878..d5cd9aa7eacc1cc8f0413b401ae69cf7b959d690 100644 (file)
@@ -209,18 +209,18 @@ 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 */
-               len = cifs_strtoUCS(wpwd, passwd, 128, codepage);
+               len = cifs_strtoUTF16(wpwd, passwd, 128, codepage);
        else {
                len = 0;
                *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;
 }