]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix return value in cifsConvertToUTF16
authorJeff Layton <jlayton@redhat.com>
Tue, 18 Sep 2012 18:21:01 +0000 (14:21 -0400)
committerSteve French <smfrench@gmail.com>
Tue, 18 Sep 2012 20:35:25 +0000 (15:35 -0500)
commit6318bee805c5b4ced1d207a4ffa7a7f9a5ffa1e9
tree4675ee9f6b92aefe53827c1d8a161a99326e20e4
parent0421e59f06c5a87cdcb3c7f5d63751797b97cb10
cifs: fix return value in cifsConvertToUTF16

This function returns the wrong value, which causes the callers to get
the length of the resulting pathname wrong when it contains non-ASCII
characters.

This seems to fix https://bugzilla.samba.org/show_bug.cgi?id=6767

Cc: <stable@vger.kernel.org>
Reported-by: Baldvin Kovacs <baldvin.kovacs@gmail.com>
Reported-and-Tested-by: Nicolas Lefebvre <nico.lefebvre@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_unicode.c