diff options
author | Steve French <sfrench@us.ibm.com> | 2011-11-10 12:48:20 -0600 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2011-12-08 22:04:47 -0600 |
commit | 59edb63ad08e4f3a9477223c9aaf3fba753085bf (patch) | |
tree | 226e770896bede879b998a54c947656ee8944c01 /fs | |
parent | 9a5101c8968c7b3e7de5564af6358d7332cf9a6b (diff) | |
download | op-kernel-dev-59edb63ad08e4f3a9477223c9aaf3fba753085bf.zip op-kernel-dev-59edb63ad08e4f3a9477223c9aaf3fba753085bf.tar.gz |
cifs: Fix sparse warning when calling cifs_strtoUCS
Fix sparse endian check warning while calling cifs_strtoUCS
CHECK fs/cifs/smbencrypt.c
fs/cifs/smbencrypt.c:216:37: warning: incorrect type in argument 1
(different base types)
fs/cifs/smbencrypt.c:216:37: expected restricted __le16 [usertype] *<noident>
fs/cifs/smbencrypt.c:216:37: got unsigned short *<noident>
Signed-off-by: Steve French <smfrench@gmail.com>
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com
Diffstat (limited to 'fs')
-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; } |