From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sat, 15 Oct 2011 11:34:02 -0400 Subject: [U-Boot] [PATCH 1/3] fdt: check for fdt errors in fdt_create_phandle In-Reply-To: <1316561076-24923-1-git-send-email-timur@freescale.com> References: <1316561076-24923-1-git-send-email-timur@freescale.com> Message-ID: <4E99A7EA.4060606@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 09/20/2011 07:24 PM, Timur Tabi wrote: > fdt_create_phandle() was ignoring errors from fdt_set_phandle(). If an > error occurs, print an error message and return 0, which is an invalid > phandle. We also need to change the return type for fdt_create_phandle() > to indicate that it cannot return an error code. > > Signed-off-by: Timur Tabi > --- > common/fdt_support.c | 11 +++++++++-- > include/fdt_support.h | 2 +- > 2 files changed, 10 insertions(+), 3 deletions(-) Added to u-boot-fdt, sent a pull request to wd. Thanks, gvb [snip]