From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: David Gibson Subject: Re: libfdt: Fix NOP handling bug in fdt_add_subnode_namelen() In-Reply-To: Your message of "Thu, 14 Feb 2008 16:50:34 +1100." <20080214055034.GA13137@localhost.localdomain> References: <20080214055034.GA13137@localhost.localdomain> Date: Thu, 14 Feb 2008 08:05:07 -0600 From: Jon Loeliger Message-Id: Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , So, like, the other day David Gibson mumbled: > fdt_add_subnode_namelen() has a bug if asked to add a subnode to a > node which has NOP tags interspersed with its properties. In this > case fdt_add_subnode_namelen() will put the new subnode before the > first NOP tag, even if there are properties after it, which will > result in an invalid blob. > > This patch fixes the bug, and adds a testcase for it. > > Signed-off-by: David Gibson Applied. Thanks, jdl