]> err.no Git - linux-2.6/blobdiff - fs/cifs/misc.c
[PATCH] fix send_sigqueue() vs thread exit race
[linux-2.6] / fs / cifs / misc.c
index db14b503d89e596dfa2c4102fca9469a7e814ce2..20ae4153f791673d4137bf885db2b8b92cda8852 100644 (file)
@@ -571,6 +571,7 @@ cifs_convertUCSpath(char *target, const __le16 * source, int maxlen,
                                break;
                        case UNI_LESSTHAN:
                                target[j] = '<';
+                               break;
                        default: 
                                len = cp->uni2char(src_char, &target[j], 
                                                NLS_MAX_CHARSET_SIZE);
@@ -610,6 +611,7 @@ cifsConvertToUCS(__le16 * target, const char *source, int maxlen,
                src_char = source[i];
                switch (src_char) {
                        case 0:
+                               target[j] = 0;
                                goto ctoUCS_out;
                        case ':':
                                target[j] = cpu_to_le16(UNI_COLON);