Re: [PATCH] fdt: off by one in ofnode_lookup_fdt()

2023-08-08 Thread Tom Rini
On Wed, Jul 26, 2023 at 09:59:52AM +0300, Dan Carpenter wrote: > The "oftree_count" is the number of entries which have been set in > the oftree_list[] array. If all the entries have been initialized then > this off by one would result in reading one element beyond the end > of the array. > > Si

Re: [PATCH] fdt: off by one in ofnode_lookup_fdt()

2023-07-26 Thread Simon Glass
Hi Dan, On Wed, 26 Jul 2023 at 00:59, Dan Carpenter wrote: > > The "oftree_count" is the number of entries which have been set in > the oftree_list[] array. If all the entries have been initialized then > this off by one would result in reading one element beyond the end > of the array. > > Sign

[PATCH] fdt: off by one in ofnode_lookup_fdt()

2023-07-26 Thread Dan Carpenter
The "oftree_count" is the number of entries which have been set in the oftree_list[] array. If all the entries have been initialized then this off by one would result in reading one element beyond the end of the array. Signed-off-by: Dan Carpenter --- drivers/core/ofnode.c | 2 +- 1 file change