From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: David Gibson Subject: Re: libfdt: Fix use of uninitialized variable in fdt_get_path() In-Reply-To: Your message of "Fri, 31 Aug 2007 14:30:16 +1000." <20070831043016.GM19271@localhost.localdomain> References: <20070831043016.GM19271@localhost.localdomain> Date: Fri, 31 Aug 2007 08:38:02 -0500 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: > My recent implemenetation of fdt_get_path() had a bug - the while loop > tested offset which was unitialized on the first iteration. Depending > on code surrounding the call, this could cause fdt_get_path() to > return incorrect results. > > This patch corrects the problem by applying some more correct thinking > to the loop condition. > > Signed-off-by: David Gibson Applied. Thanks, jdl