diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-28 15:47:11 +0800 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-28 15:47:11 +0800 |
commit | 1f7d373f4773eca06978446f677b4de5a4814095 (patch) | |
tree | 4fb35ebe194f1797873210dcafacb2774410cc93 /arch/blackfin/kernel | |
parent | 27228b2e4c1726a376b32f8b12242718ebf5b8a4 (diff) | |
download | talos-obmc-linux-1f7d373f4773eca06978446f677b4de5a4814095.tar.gz talos-obmc-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')
-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; } |