From: Jon Loeliger Subject: Re: libfdt: Fix bug in fdt_subnode_offset_namelen() Date: Wed, 05 Nov 2008 08:15:38 -0600 Message-ID: References: <20081030024108.GC17505@yookeroo.seuss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <20081030024108.GC17505@yookeroo.seuss> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: David Gibson Cc: linuxppc-dev@ozlabs.org, devicetree-discuss@ozlabs.org List-Id: devicetree@vger.kernel.org > There's currently an off-by-one bug in fdt_subnode_offset_namelen() > which causes it to keep searching after it's finished the subnodes of > the given parent, and into the subnodes of siblings of the original > node which come after it in the tree. > > This patch fixes the bug. It also extends the subnode_offset testcase > (updating all of the 'test_tree1' example trees in the process) to > catch it. > > Signed-off-by: David Gibson Applied. Thanks, jdl