Commit:     804ace8881d211ac448082e871dd312132393049
Parent:     12cdac34c6e90d887de23ab9747185731cba254a
Author:     Scott Wood <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 21 02:36:59 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 15:21:47 2007 +1000

    [POWERPC] Use strcasecmp() rather than strncasecmp() when determining 
device node compatibility
    The current code assumes "foo-bar" must always be compatible with a node
    compatible with "foo", which breaks device trees where this is not so.
    The "case" part is also wrong according to Open Firmware, but it's more
    likely to have drivers and/or device trees depending on it, and thus
    needs to be handled more carefully.
    Signed-off-by: Scott Wood <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 include/asm-powerpc/prom.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h
index 920b756..925e2d3 100644
--- a/include/asm-powerpc/prom.h
+++ b/include/asm-powerpc/prom.h
@@ -24,7 +24,7 @@
-#define of_compat_cmp(s1, s2, l)       strncasecmp((s1), (s2), (l))
+#define of_compat_cmp(s1, s2, l)       strcasecmp((s1), (s2))
 #define of_prop_cmp(s1, s2)            strcmp((s1), (s2))
 #define of_node_cmp(s1, s2)            strcasecmp((s1), (s2))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to