From: Daniel Schaefer <daniel.schaefer@hpe.com>
To: opensbi@lists.infradead.org
Subject: [PATCH v1 3/3] lib: utils: Replace strcmp with strcmp
Date: Mon, 17 May 2021 19:33:19 +0800 [thread overview]
Message-ID: <20210517113319.25855-4-daniel.schaefer@hpe.com> (raw)
In-Reply-To: <20210517113319.25855-1-daniel.schaefer@hpe.com>
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Anup Patel <Anup.Patel@wdc.com>
Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com>
---
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
next prev parent reply other threads:[~2021-05-17 11:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-17 11:33 [PATCH v1 0/3] Don't use SBI functions in fdt code Daniel Schaefer
2021-05-17 11:33 ` [PATCH v1 1/3] lib: utils: Add macro to libfdt_env.h for strncpy Daniel Schaefer
2021-05-17 13:47 ` Xiang W
2021-05-18 0:36 ` Chang, Abner
2021-05-17 11:33 ` [PATCH v1 2/3] lib: fdt: Don't use sbi_string functions Daniel Schaefer
2021-05-17 13:54 ` Xiang W
2021-05-18 0:36 ` Chang, Abner
2021-05-18 0:58 ` Schaefer, Daniel
2021-05-17 11:33 ` Daniel Schaefer [this message]
2021-05-17 11:52 ` [PATCH v1 3/3] lib: utils: Replace strcmp with strcmp Andreas Schwab
2021-05-17 13:57 ` Xiang W
2021-05-18 0:34 ` Chang, Abner
2021-05-19 7:35 ` [PATCH v1 0/3] Don't use SBI functions in fdt code Anup Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210517113319.25855-4-daniel.schaefer@hpe.com \
--to=daniel.schaefer@hpe.com \
--cc=opensbi@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox