mirror of https://gitee.com/openkylin/linux.git
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:
parent
27228b2e4c
commit
1f7d373f47
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue