Thread (13 messages) 13 messages, 4 authors, 2021-05-19
STALE1894d REVIEWED: 1 (0M)

[PATCH v1 3/3] lib: utils: Replace strcmp with strcmp

From: Xiang W <hidden>
Date: 2021-05-17 13:57:34

? 2021-05-17?? 19:33 +0800?Daniel Schaefer???
Cc: Abner Chang <redacted>
Cc: Anup Patel <redacted>
Signed-off-by: Daniel Schaefer <redacted>
Look good to me.

Reviewed-by: Xiang W <redacted>
quoted hunk ↗ jump to hunk
---
 lib/utils/fdt/fdt_domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/utils/fdt/fdt_domain.c b/lib/utils/fdt/fdt_domain.c
index c1f6a8c8a10b..a9ebbdca3c52 100644
--- a/lib/utils/fdt/fdt_domain.c
+++ b/lib/utils/fdt/fdt_domain.c
@@ -96,7 +96,7 @@ static int __fixup_find_domain_offset(void *fdt,
int doff, void *p)
 {
 	struct __fixup_find_domain_offset_info *fdo = p;
 
-	if (!strcmp(fdo->name, fdt_get_name(fdt, doff, NULL)))
+	if (!strncmp(fdo->name, fdt_get_name(fdt, doff, NULL),
strlen(fdo->name)))
 		*fdo->doffset = doff;
 
 	return 0;
-- 
2.30.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help