[PATCH] libmisc/rtems-fdt: Support prop map items up to the size of uintptr_t
chrisj at rtems.org
chrisj at rtems.org
Fri Nov 25 01:19:56 UTC 2022
From: Chris Johns <chrisj at rtems.org>
Updates #4729
---
cpukit/libmisc/rtems-fdt/rtems-fdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libmisc/rtems-fdt/rtems-fdt.c b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
index e5bab21664..26312ff624 100644
--- a/cpukit/libmisc/rtems-fdt/rtems-fdt.c
+++ b/cpukit/libmisc/rtems-fdt/rtems-fdt.c
@@ -1063,7 +1063,7 @@ rtems_fdt_prop_map(const char* const path,
return length;
}
- if (length != sizeof (uintptr_t))
+ if (length > sizeof (uintptr_t))
{
rtems_fdt_release_handle (&fdt);
return -RTEMS_FDT_ERR_BADPATH;
--
2.19.1
More information about the devel
mailing list