projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27228b2
)
Blackfin arch: fix cmp_label() so it doesnt incorrectly accept partial leading matches
author
Mike Frysinger
<vapier.adi@gmail.com>
Tue, 28 Oct 2008 07:47:11 +0000
(15:47 +0800)
committer
Bryan Wu
<cooloney@kernel.org>
Tue, 28 Oct 2008 07:47:11 +0000
(15:47 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/kernel/bfin_gpio.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/kernel/bfin_gpio.c
b/arch/blackfin/kernel/bfin_gpio.c
index
a808baf
..
4aa3c05
100644
(file)
--- 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;
}