Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
Mike Frysinger 2008-10-28 15:47:11 +08:00 committed by Bryan Wu
parent 27228b2e4c
commit 1f7d373f47
1 changed files with 1 additions and 2 deletions

View 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;
}