]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix up CIFSSMBEcho for unaligned access
authorJeff Layton <jlayton@redhat.com>
Fri, 21 Jan 2011 02:19:25 +0000 (21:19 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 21 Jan 2011 02:23:27 +0000 (02:23 +0000)
commitd97f92336d00bf284ac602b37c5e1713a369b35d
tree7ec07aeb365ea5f16dfd1ce1a2295e073d362ac6
parentbc19cddee05098f87e29fb92f0c28f899c088539
cifs: fix up CIFSSMBEcho for unaligned access

Make sure that CIFSSMBEcho can handle unaligned fields. Also fix a minor
bug that causes this warning:

fs/cifs/cifssmb.c: In function 'CIFSSMBEcho':
fs/cifs/cifssmb.c:740: warning: large integer implicitly truncated to unsigned type

...WordCount is u8, not __le16, so no need to convert it.

This patch should apply cleanly on top of the rest of the patchset to
clean up unaligned access.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifssmb.c