From: Ahmad Fatoum <ahmad@a3f.at>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <ahmad@a3f.at>
Subject: [PATCH] fixup! PBL: fdt: implement fdt_device_get_match_data
Date: Sat, 3 Apr 2021 11:49:02 +0200 [thread overview]
Message-ID: <20210403094902.3675876-1-ahmad@a3f.at> (raw)
In-Reply-To: <20210403070237.3642189-1-ahmad@a3f.at>
Forgot to squash
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
pbl/fdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pbl/fdt.c b/pbl/fdt.c
index 03260cb61971..8ec128f35987 100644
--- a/pbl/fdt.c
+++ b/pbl/fdt.c
@@ -94,7 +94,7 @@ const void *fdt_device_get_match_data(const void *fdt, const char *nodepath,
return NULL;
for (id = ids; id->compatible; id++) {
- if (strlen(id->compatible) == length &&
+ if (strlen(id->compatible) + 1 == length &&
!memcmp(list, id->compatible, length))
return id->data;
}
--
2.30.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2021-04-03 9:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-03 7:02 [PATCH 1/4] " Ahmad Fatoum
2021-04-03 7:02 ` [PATCH 2/4] RISC-V: debug_ll: ns16550: split off debug_ll from generic parts Ahmad Fatoum
2021-04-03 7:02 ` [PATCH 3/4] RISC-V: board-dt-2nd: add PBL console support for virt Ahmad Fatoum
2021-04-03 7:02 ` [PATCH 4/4] RISC-V: delete unused mach-virt subdirectory Ahmad Fatoum
2021-04-03 9:49 ` Ahmad Fatoum [this message]
2021-04-03 12:00 ` [PATCH 1/4] PBL: fdt: implement fdt_device_get_match_data Jules Maselbas
2021-04-04 11:22 ` Ahmad Fatoum
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=20210403094902.3675876-1-ahmad@a3f.at \
--to=ahmad@a3f.at \
--cc=barebox@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