From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sat, 15 Sep 2012 09:41:18 -0400 Subject: [U-Boot] [PATCH] fdt: Check if the FDT address is configured In-Reply-To: <1346826884-12829-1-git-send-email-marex@denx.de> References: <1346826884-12829-1-git-send-email-marex@denx.de> Message-ID: <5054857E.6060009@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/05/2012 02:34 AM, Marek Vasut wrote: > In case the "fdt addr" command wasn't ran yet and any other "fdt" > subcommand was issued, the system crashed due to NULL pointer being > used. > > This is caused by "fdt addr" command setting up a pointer to the > FDT memory location. Prior issuing "fdt addr", the pointer is NULL > so calling any other subcommands crashed the u-boot. > > Signed-off-by: Marek Vasut > Cc: Simon Glass Applied and sent a pull request to Tom Rini. Thanks, gvb