From: Tom Rini Date: Wed, 22 Oct 2014 13:33:28 -0400 Subject: [U-Boot] [PATCH] image-fdt: boot_get_fdt() return value when no DTB exists In-Reply-To: <1413998107.3815.16.camel@abrodkin-8560l.internal.synopsys.com> References: <1413987469-26139-1-git-send-email-noamc@ezchip.com> <20141022164826.GA25506@bill-the-cat> <1413998107.3815.16.camel@abrodkin-8560l.internal.synopsys.com> Message-ID: <20141022173328.GE25506@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 22, 2014 at 05:15:07PM +0000, Alexey Brodkin wrote: > 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 > > > > > > 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 > > > > 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? I'm talking about the allowed-by-kludgey case of a device tree being cat'd to the end of an image prior to loading. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: