From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: David Gibson Subject: Re: libfdt: Fix bug in fdt_subnode_offset_namelen() In-reply-to: <20081030024108.GC17505@yookeroo.seuss> References: <20081030024108.GC17505@yookeroo.seuss> Date: Wed, 05 Nov 2008 08:15:38 -0600 From: Jon Loeliger Message-Id: Cc: linuxppc-dev@ozlabs.org, devicetree-discuss@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > 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