Re: Needs a check in the device tree

2024-06-06 Thread jianqiang wang
hi Simon, yes, you are right, I forgot to call this checking function, thanks! Best regards Jianqiang Simon Glass 于2024年6月6日周四 17:04写道: > Hi Jianqiang, > > On Wed, 5 Jun 2024 at 07:40, jianqiang wang wrote: > > > > Dear Das U-Boot developers, > > > > I found that the u-boot device tree implem

Re: Needs a check in the device tree

2024-06-06 Thread Simon Glass
Hi Jianqiang, On Wed, 5 Jun 2024 at 07:40, jianqiang wang wrote: > > Dear Das U-Boot developers, > > I found that the u-boot device tree implementation lacks a check for the > off_dt_struct field in the device tree. > > In file scripts\dtc\libfdt\libfdt_internal.h, fdt_offset_ptr_ returns the > d

Needs a check in the device tree

2024-06-05 Thread jianqiang wang
Dear Das U-Boot developers, I found that the u-boot device tree implementation lacks a check for the off_dt_struct field in the device tree. In file scripts\dtc\libfdt\libfdt_internal.h, fdt_offset_ptr_ returns the dt struct address. It calculates the address by adding the header address, fdt off