]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit84cdf74e8096a10dd6acbb870dd404b92f07a756
tree3cae46e567fab0649bb5696f4097d8072b0f9645
parentba2dbf30df210b519bdd8d34ac2ecaaeeef34c44
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