From: Mike Frysinger Date: Tue, 28 Oct 2008 07:47:11 +0000 (+0800) Subject: Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f7d373f4773eca06978446f677b4de5a4814095;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches Signed-off-by: Mike Frysinger Signed-off-by: Bryan Wu --- diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index a808baf5d30..4aa3c053297 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c @@ -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; }