Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches
[safe/jmp/linux-2.6] / arch / blackfin / kernel / bfin_gpio.c
index a808baf..4aa3c05 100644 (file)
@@ -256,8 +256,7 @@ static int cmp_label(unsigned short ident, const char *label)
        }
 
        if (label)
-               return strncmp(str_ident[ident].name,
-                                label, strlen(label));
+               return strcmp(str_ident[ident].name, label);
        else
                return -EINVAL;
 }