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

Tom Rini trini at ti.com
Wed Dec 3 19:21:36 CET 2014


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>

It has been found that this change breaks the case of an appended device
tree file, so for the problem in question some other solution must be
found.

This reverts commit c6150aaf2f2745141a7c2ceded58d7efbfeace7d.

Reported-by: Bill Pringlemeir <bpringlemeir at nbsps.com>
Reported-by: Pantelis Antoniou <panto at antoniou-consulting.com>
Confirmed-by: Bill Pringlemeir <bpringlemeir at nbsps.com>
Signed-off-by: Tom Rini <trini at ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141203/0544273a/attachment.pgp>


More information about the U-Boot mailing list