[PATCH] fdt: off by one in ofnode_lookup_fdt()
Tom Rini
trini at konsulko.com
Wed Aug 9 03:40:07 CEST 2023
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.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230808/6d6a36d0/attachment.sig>
More information about the U-Boot
mailing list