[U-Boot] [PATCH] image-fdt: boot_get_fdt() return value when no DTB exists

Alexey Brodkin Alexey.Brodkin at synopsys.com
Wed Oct 22 19:15:07 CEST 2014


Hi Tom,

On Wed, 2014-10-22 at 12:48 -0400, Tom Rini wrote:
> On Wed, Oct 22, 2014 at 05:17:49PM +0300, Noam Camus wrote:
> 
> > From: Noam Camus <noamc at ezchip.com>
> > 
> > I believe that when no DTB is around we should return 1.
> > This why I fixed such scenarious to not return zero anymore.
> > Else kernel might get NULL pointer to DTB which doesn't exists.
> > 
> > Signed-off-by: Noam Camus <noamc at ezchip.com>
> 
> While this is probably OK and not an issue, my only "what if" is, what
> about for appened device trees?

Which device tree do you mean?
The one built in uImage or in FIT image?

-Alexey


More information about the U-Boot mailing list