]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix unaligned accesses in cifsConvertToUCS
authorJeff Layton <jlayton@redhat.com>
Thu, 20 Jan 2011 18:36:51 +0000 (13:36 -0500)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Jan 2011 21:48:00 +0000 (21:48 +0000)
commit3e6fb93dbded80953cf390757dbe3e1680ccd2f1
tree3cae46e567fab0649bb5696f4097d8072b0f9645
parentb1c8dcf9bb59c70ee1a941221ba8f5ac2fe200c8
cifs: fix unaligned accesses in cifsConvertToUCS

Move cifsConvertToUCS to cifs_unicode.c where all of the other unicode
related functions live. Have it store mapped characters in 'temp' and
then use put_unaligned_le16 to copy it to the target buffer. Also fix
the comments to match kernel coding style.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_unicode.c
fs/cifs/misc.c