diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-10-28 03:47:11 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-28 03:47:11 -0400 |
commit | 1f7d373f4773eca06978446f677b4de5a4814095 (patch) | |
tree | 4fb35ebe194f1797873210dcafacb2774410cc93 /arch/blackfin/kernel/bfin_gpio.c | |
parent | 27228b2e4c1726a376b32f8b12242718ebf5b8a4 (diff) |
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) | |||
256 | } | 256 | } |
257 | 257 | ||
258 | if (label) | 258 | if (label) |
259 | return strncmp(str_ident[ident].name, | 259 | return strcmp(str_ident[ident].name, label); |
260 | label, strlen(label)); | ||
261 | else | 260 | else |
262 | return -EINVAL; | 261 | return -EINVAL; |
263 | } | 262 | } |