diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-28 08:47:11 +0100 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-28 08:47:11 +0100 |
commit | 1f7d373f4773eca06978446f677b4de5a4814095 (patch) | |
tree | 4fb35ebe194f1797873210dcafacb2774410cc93 /arch/blackfin/kernel/bfin_gpio.c | |
parent | Blackfin arch: unify check_gpio() to reduce arch differences (diff) | |
download | linux-1f7d373f4773eca06978446f677b4de5a4814095.tar.xz linux-1f7d373f4773eca06978446f677b4de5a4814095.zip |
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>
Diffstat (limited to 'arch/blackfin/kernel/bfin_gpio.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index a808baf5d309..4aa3c053297f 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; } |