* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: cifs: fix cifsConvertToUCS() for the mapchars case cifs: add fallback in is_path_accessible for old servers
···277277278278 for (i = 0, j = 0; i < srclen; j++) {279279 src_char = source[i];280280+ charlen = 1;280281 switch (src_char) {281282 case 0:282283 put_unaligned(0, &target[j]);···317316 dst_char = cpu_to_le16(0x003f);318317 charlen = 1;319318 }320320- /*321321- * character may take more than one byte in the source322322- * string, but will take exactly two bytes in the323323- * target string324324- */325325- i += charlen;326326- continue;327319 }320320+ /*321321+ * character may take more than one byte in the source string,322322+ * but will take exactly two bytes in the target string323323+ */324324+ i += charlen;328325 put_unaligned(dst_char, &target[j]);329329- i++; /* move to next char in source string */330326 }331327332328ctoUCS_out: